netlify / ask-netlify

A place to submit questions for Netlify to answer in tutorials, podcasts and blog posts
https://ask.netlify.com
32 stars 8 forks source link

How do I control cache duration on the CDN? #3

Closed philhawksworth closed 5 years ago

philhawksworth commented 5 years ago

About me

My question in a little more detail

Do you support the "s-max-age" headers to control how long a file is cached in the CDN, say passing thru a proxy set in netlify.toml config?

philhawksworth commented 5 years ago

Worth mentioning:

https://www.netlify.com/blog/2018/11/26/announcing-ipv6-support-on-the-netlify-application-delivery-network/

futuregerald commented 5 years ago

A great blog post on how Netlify handles caching for you:

https://www.netlify.com/blog/2017/02/23/better-living-through-caching/