Skip to content

Fix HTTP caching compliance by adding Vary headers for compressible c… - #12764

Merged
cmcfarlen merged 3 commits into
apache:10.1.xfrom
cmcfarlen:cp-10.1-vary-compress
Dec 17, 2025
Merged

Fix HTTP caching compliance by adding Vary headers for compressible c…#12764
cmcfarlen merged 3 commits into
apache:10.1.xfrom
cmcfarlen:cp-10.1-vary-compress

Conversation

@cmcfarlen

Copy link
Copy Markdown
Contributor

…ontent (#12741)

The compress plugin was only adding Vary: Accept-Encoding headers when content was actually going to be compressed, not when content could be compressed. This can cause downstream caches to never get the compressed version in cache.

Now adds Vary: Accept-Encoding headers for all compressible content regardless of whether compression is applied, ensuring proper HTTP cache behavior.

(cherry picked from commit 0d52043)

…ontent (apache#12741)

The compress plugin was only adding Vary: Accept-Encoding headers when content
was actually going to be compressed, not when content could be compressed. This
can cause downstream caches to never get the compressed version in cache.

Now adds Vary: Accept-Encoding headers for all compressible content regardless
of whether compression is applied, ensuring proper HTTP cache behavior.

Co-authored-by: Claude <noreply@anthropic.com>
(cherry picked from commit 0d52043)
@cmcfarlen cmcfarlen added this to the 10.1.1 milestone Dec 16, 2025
@cmcfarlen cmcfarlen self-assigned this Dec 16, 2025
@cmcfarlen

Copy link
Copy Markdown
Contributor Author

[approve ci autest 0]

@cmcfarlen
cmcfarlen merged commit 9380307 into apache:10.1.x Dec 17, 2025
15 checks passed
@cmcfarlen
cmcfarlen deleted the cp-10.1-vary-compress branch December 17, 2025 20:04
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.

2 participants