| kusimari 2004-09-02, 7:24 pm |
| Hi,
I have enabled gzip using the below directives
<config>
SetOutputFilter DEFLATE
# Disable compression for all browsers, then add specific browsers
as needed
BrowserMatch ^. no-gzip
# Enable compression for Internet Explorer 5.5, 6.0
BrowserMatch \bMSI[E].(5\.5|6\.0) !no-gzip
# Enable compression for netscape 6.2, 7.0, 7.1
BrowserMatch ^Mozilla/5.0 !no-gzip
# Don't compress images
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g)$ no-gzip
# Workaround to avoid deflating anything except HTML, JS and CSS
SetEnv gzip-only-text/html 1
SetEnvIfNoCase Request_URI \.(?:js|css)$ gzip-only-text/html=0
</config>
mod_deflate documentation says that a Vary: Accept-Encoding header is
applied even when the request comes from a Http 1.0 client. This means
that a CSS or JS file is downloaded whenever referenced and the one in
the browser cache is never used. Is there a way to disable Vary header
when using Http 1.0, when mod_deflate is turned on (sic).
Thanks,
kusi
|