CDN in Console
Configuring CDN
You can configure the CDN to take query parameters and cookies into account when serving cached responses. To do this, navigate to Your instance → Settings → CDN.
In this section, you can specify which data affects cached responses. You may define either an allowlist or a blocklist of query parameters. You can also indicate which cookies influence the responses.
Please make sure to add all the cookies that impact the SSR rendering. Alokai uses vsf-locale
to set the locale and vsf-currency
to set the currency.
You likely will need to add vsf-locale
to the cache key.
Invalidating cache
If you notice that the cached response is not what you expect, you can invalidate it. Navigate to Your instance → Caching layer → CDN cache and select the paths you want to clear from the cache.
Viewing metrics
Navigate to Your instance → Caching layer → CDN metrics to monitor CDN performance.