Astro, set caching headers
By Flavio Copes
A quick reference for setting caching headers in Astro, using Astro.response.headers.set to send a Cache-Control header like public, max-age=3600.
~~~
Writing this down for reference
Astro.response.headers.set('Cache-Control', 'public, max-age=3600')
If you need a different caching policy, I built a free Cache-Control header builder that puts together the right directives for you.
~~~
Related posts about astro: