What gets cached
Only static files are cached: JavaScript, CSS, fonts, images, video, audio and PDF. Pages, API responses and data your app renders for a shop (HTML, JSON, React Router loader data) are never cached, so one merchant’s content can’t be served to another. Within static files, your app’s ownCache-Control header decides:
Anything you don’t want cached at all, send with
Cache-Control: private or no-store.
Purging the cache
After each successful deploy, Meridian clears the environment’s cache, so files that keep the same name across releases (anything inpublic/, images your app serves) don’t stay stale. Hashed build assets change name with every build and are never stale anyway.
To clear it by hand, for example after replacing a file in storage, use Purge cache on the CDN screen. Google applies a purge within a few minutes.
Public storage files
With object storage, your bucket’spublic/ files are served at https://<app>-assets.the-meridian.app whether or not you have the CDN. With the CDN, that hostname is cached too, and its URL is also injected as CDN_URL, the same value as STORAGE_PUBLIC_URL.
Bandwidth
Responses served from the cache still count toward the app’s bandwidth, like the ones your app serves itself.Turning it off
Cancelling the CDN stops caching at the end of the billing period. When it ends, the cache is cleared and every hostname is served straight from your app again. Nothing in your app needs to change either way.The CDN can be enabled once your production environment exists.