apollographql / apollographql/apollo-server
add option for s-maxage inside cacheControl
Open
⛲️ feature
🧬 cache-control
- Dominant language
- TypeScript
- Stars
- 14k
- Forks
- 2k
- Avg merge
- 5h 30m
- Merged PRs (30d)
- 1
Description
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
Contributor guide
Research direction
No file, test, or entry point is named in the issue. Locate the cacheControl handling and its existing tests first, then determine how s-maxage and stale-while-revalidate should be configured; done means these response-cache directives can be set without breaking current cacheControl behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100