You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2005/11/18 17:58:24 UTC

DO NOT REPLY [Bug 37559] New: - mod_deflate overwrites the Vary: header

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37559>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37559

           Summary: mod_deflate overwrites the Vary: header
           Product: Apache httpd-2.0
           Version: 2.0.55
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: All
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: mguardiola@asp4all.nl


Hi, 

mod_deflate seems to overwrite Vary headers set by applications (or 
mod_headers) when serving proxied content. 

Below my virtualhost configuration and the test data. 

_____________
# cat /usr/local/apache/conf/deflate.conf
<Virtualhost *>
  ServerName            direct.test.nl
  DocumentRoot          /var/www/html
  AddOutputFilterByType DEFLATE text/html text/plain text/css
</VirtualHost>

<Virtualhost *>
  ServerName            proxy.test.nl
  ProxyPass             /       http://backend.test.nl/
  ProxyPassReverse      /       http://backend.test.nl/
  AddOutputFilterByType DEFLATE text/html text/plain text/css
</VirtualHost>

<Virtualhost *>
  ServerName            backend.test.nl
  DocumentRoot          /var/www/html
</VirtualHost>
_________________

# cat test.cgi
#!/bin/sh

echo "Content-type: text/html"
echo "Vary: Accept"
echo ""
echo ""

echo    "
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html>
<head>
<title>Test</title>
</head>
</body>
</html>
        "
______________

# wget --header="Accept-Encoding: compress, gzip" -SO backendhtml 
backend.test.nl/cgi-bin/test.cgi 2>&1 | grep Vary
 4 Vary: Accept

# wget --header="Accept-Encoding: compress, gzip" -SO directhtml  
direct.test.nl/cgi-bin/test.cgi 2>&1 | grep Vary
 4 Vary: Accept,Accept-Encoding

# wget --header="Accept-Encoding: compress, gzip" -SO proxyhtml   
proxy.test.nl/cgi-bin/test.cgi 2>&1 | grep Vary
 4 Vary: Accept-Encoding

______________
The last request should generate the same Vary header as the second one..


Kind regards, 

Marc Guardiola

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org