Web Servers General Talk - mod_deflate and http 1.0

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers General Talk > September 2004 > mod_deflate and http 1.0





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author mod_deflate and http 1.0
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
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com