Skip to content

Fix nginx example (cache immutable)#8046

Closed
CarlSchwan wants to merge 1 commit intomasterfrom
nginx-immuatable-cache2
Closed

Fix nginx example (cache immutable)#8046
CarlSchwan wants to merge 1 commit intomasterfrom
nginx-immuatable-cache2

Conversation

@CarlSchwan
Copy link
Member

Signed-off-by: Carl Schwan carl@carlschwan.eu

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
@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