Bug 51312

Summary: mod_filter should support adding to the Vary header
Product: Apache httpd-2 Reporter: Stefan Fritsch <sf>
Component: mod_filterAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 2.5-HEAD   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

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