add option for s-maxage inside cacheControl
See original GitHub issueHi Guys,
I use deployment on Zeit now. I would like to set the s-maxage
to enable CDN response but it seems this option is not available. It would be great if cacheControl
would be more flexible to set this option.
Especially options like stale-while-revalidate
would be great to add.
Thanks
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:6 (5 by maintainers)
Top Results From Across the Web
How to set the S-MaxAge CacheControl value in an ASP.NET ...
I found the answer, the [AuthorizeAttribute] clears any maxage to zero. This means, no proxies every cache a view result that has Authorization....
Read more >Server-side caching - Apollo GraphQL Docs
Once enabled, Apollo Server lets you to define cache control settings ( maxAge and scope ) for each field in your schema: GraphQL....
Read more >Cache-Control - How to Properly Configure It - KeyCDN Support
Cache-Control is an HTTP cache header comprised of directives that allow you to define when and how a response should be cached. Learn...
Read more >Cache-Control - HTTP - MDN Web Docs
The Cache-Control HTTP header field holds directives ... or you are already using s-maxage or must-revalidate in the response, ...
Read more >What's the Best Way to Set The Cache-Control Header?
But what if we need to change it within the max-age? Normally, when we apply the Long Term Caching , we will add...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That’s fair. I think this is a reasonable idea but will take some thought to decide if we need to be adding it to all the ways we represent a cache policy.
We’ve just implemented a patch to do this but it would be nice if it could be native