mod_deflate and http 1.0
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Web Servers General Talk > mod_deflate and http 1.0




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    mod_deflate and http 1.0  
kusimari


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-03-04 12:24 AM

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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:54 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register