Bug 51312 - mod_filter should support adding to the Vary header
Summary: mod_filter should support adding to the Vary header
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_filter (show other bugs)
Version: 2.5-HEAD
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
Depends on:
Reported: 2011-06-01 20:00 UTC by Stefan Fritsch
Modified: 2011-06-01 20:00 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Fritsch 2011-06-01 20:00:36 UTC
If mod_filter is used to configure mod_deflate like this:

BrowserMatch ^Mozilla/4 no-gzip
BrowserMatch "\bMSIE [7-9]" !no-gzip
Header append Vary User-Agent env=!dont-vary
FilterDeclare compress-response
FilterProvider compress-response DEFLATE Content-Type $text/
FilterProvider compress-response DEFLATE Content-Type
FilterProtocol compress-response change=yes;byteranges=no

it is not possible to add the Vary: User-Agent header only if the filter is actually activated.

Maybe mod_filter should have some additional support for adding a Vary header or setting an env var.

There was a small thread about this at