fastify / fastify-caching

A Fastify plugin to facilitate working with cache headers
MIT License
204 stars 26 forks source link

Added the ability to have s-maxage cache control headers (alongside existing max-age cache control headers) #80

Closed JulieGoldberg closed 3 years ago

JulieGoldberg commented 3 years ago

Added the ability to have s-maxage cache control headers when caching is public, so the length of time something is stored in a CDN can be longer than the length of time it is stored in a browser. e.g. For things stored in AWS CloudFront, https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html#ExpirationDownloadDist

Checklist

JulieGoldberg commented 3 years ago

Will someone with sufficient permissions merge this? I can't. It's got four approvals. Thanks!