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

Fix nginx example (cache immutable) #8046

Closed
wants to merge 1 commit into from

Conversation

CarlSchwan
Copy link
Member

Signed-off-by: Carl Schwan [email protected]

@icewind1991
Copy link
Member

After some more testing I realized that nginx doesn't use the query params when matching location blocks so that can't be used to distinguish the requests in this way.

I've submitted a version using map here: #8083 which works in my testing (without ?v=1 you get normal cache-control, with ?v=1 you get cache-control: immutable)

@CarlSchwan CarlSchwan closed this Feb 21, 2022
@pierreozoux pierreozoux deleted the nginx-immuatable-cache2 branch May 20, 2022 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants