Skip to content

Don't send image/webp responses from cache to broswers that don't support it#7104

Merged
bryancall merged 5 commits intoapache:masterfrom
bryancall:webp
Aug 14, 2020
Merged

Don't send image/webp responses from cache to broswers that don't support it#7104
bryancall merged 5 commits intoapache:masterfrom
bryancall:webp

Conversation

@bryancall
Copy link
Copy Markdown
Contributor

@bryancall bryancall commented Aug 11, 2020

This closes #7099

What this patch does is only use exact match with the client Accept header field and Content-Type: image/webp if there is a webp response in cache.

This change is also dependent on proxy.config.http.cache.ignore_accept_mismatch set to 0. Alternatively I can make the change independent of proxy.config.http.cache.ignore_accept_mismatch. Feedback is welcomed.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ATS will send image/webp content to browsers that don't support it

4 participants