Skip to content
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

Add private to Web UI Cache-Control to prevent request collapsing #4967

Merged
merged 1 commit into from Aug 14, 2021

Conversation

shaunbennett
Copy link
Contributor

@shaunbennett shaunbennett commented Aug 14, 2021

As a follow up to #4966, I realized it's also important to add private to the Cache-Control header as well to prevent request collapsing. Even with no-store, Fastly (and I assume other places) can still collapse requests.

Note that this is only important if the Web UI is behind some form of authentication, since it provides the possibility of sending authenticated data to non-authenticated users under very specific circumstances.

This matches the example here that fastly shows to prevent downstream caching + request collapsing.

@mperham mperham merged commit 13e2b56 into sidekiq:master Aug 14, 2021
@mperham
Copy link
Collaborator

mperham commented Aug 14, 2021

Thanks for the followup!

@shaunbennett shaunbennett deleted the no-store-web branch August 14, 2021 16:46
jonhyman pushed a commit to braze-inc/sidekiq that referenced this pull request Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants