question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

add option for s-maxage inside cacheControl

See original GitHub issue

Hi 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:open
  • Created 4 years ago
  • Reactions:5
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
glassercommented, Jul 20, 2021

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.

1reaction
alfaprojectcommented, Jul 19, 2021

We’ve just implemented a patch to do this but it would be nice if it could be native

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found