CDN in Console
Configuring CDNri:link
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.
At the very least you likely will need to add vsf-locale
to the cache key.
Invalidating cacheri:link
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 metricsri:link
Navigate to Your instance → Caching layer → CDN metrics to monitor CDN performance.