Cacheing Astro SSR pages at build tine
Hey all im making a site with SanityCMS and astro, currently im using SSR on all my routes and using FastlyCDN to cache the pages. These caches get invalidated by a webhook whenever an editor updates a page so content stays fresh without the need to rebuild.
This is nearly perfect for me, but i wish there was a way to have my pages cache after the build, rather than when someone visits the page.
Thinking about it now, i could probably run a post build script which tells Fastly to recache a list of slugs. Ill check their API.
š¦
1 Reply
Theres nothing obvious on the API