-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: cache-control for older browsers #2675
Conversation
Interesting! What's the definition of older browsers here? |
In my case this bug report came in from an IE11 and a certain version of Edge |
I see! Do you have any other details from the bug report? For example, is there a Overall though, I think I agree with the idea of ensuring that these are not cached by being more explicit and always providing the apollo-server/packages/apollo-cache-control/src/index.ts Lines 164 to 173 in d1a0d16
I believe this change would result in that conditional always being truth-y, so we should just adjust that to not check it conditionally if the result is guaranteed. Additionally, and probably worth considering, @fabsrc recently opened a PR (#2715) which avoided setting @fabsrc: Do you have thoughts on this? |
I actually also came across this issue recently when I was configuring a CDN. Apollo not sending a So I like the idea of being more explicit here and always send a You could also consider using |
Is this fix not happening? Has it happened elsewhere? Thanks! Note we ran into the same issue when configuring with CDN. |
@jimsorock I'm going to close this, my PR section is getting crowded and this does not seem to gain traction |
I'm very much in favor of the direction noted in #2675 (comment) if someone is willing and able to pick this up! |
Fixes: #2605
In older browsers undefined cache-control means it being cached indefinitely (or I'm doing something wrong but as I see other people are experiencing this as well).
This is a draft PR since I'll have to adjust tests for this, so I first want to run this by you all.