[Mod_gzip] Caching working with mozilla but not IE

Matt Dickinson mod_gzip@lists.over.net
Sat, 10 Jan 2004 14:23:06 -0600


Hi,

I'm running mod_gzip 1.3.26.1a with Apache 1.3.28 and php 4.34. Things
appear to be "normal" when webpages are viewed with Mozilla, that is to say,
the output is compressed and images are cached and not reloaded each time
the page is loaded. However, when viewed with IE, the pages are compressed
as expected, but images are not cached and are reloaded each time. If you
wish to see this phenomena, have a look at http://micq.alpha345.com 

I'm kinda stuck as to what to try next, I've spent a good few hours reading
over the docs and trying different configurations out but to no avail, and
I'd be grateful if someone could offer some advise. Please find my
configuration below.

Thanks,

Matt

mod_gzip_on                 Yes
mod_gzip_can_negotiate        Yes
mod_gzip_maximum_file_size 500000
mod_gzip_maximum_inmem_size 100000
mod_gzip_dechunk        Yes
#mod_gzip_static_suffix        .gz
#AddEncoding              gzip .gz
mod_gzip_minimum_file_size 0
mod_gzip_maximum_file_size 500000
mod_gzip_maximum_inmem_size 100000
mod_gzip_dechunk        Yes
mod_gzip_keep_workfiles     No
# I suggest you make /usr/local/apache/gzip and use that instead
mod_gzip_temp_dir           /tmp
mod_gzip_min_http             1000
mod_gzip_handle_methods        GET POST
mod_gzip_add_header_count     Yes
mod_gzip_send_vary            On
mod_gzip_item_exclude         reqheader  "User-agent: Mozilla/4.0[678]"
mod_gzip_item_include       file \.html$
mod_gzip_item_include       file \.jsp$
mod_gzip_item_include       file \.php$
mod_gzip_item_include       file \.pl$
mod_gzip_item_include       file \.bmp$
mod_gzip_item_include       file \.htm$
mod_gzip_item_include       file \.swf$
mod_gzip_item_include       file \.fla$
mod_gzip_item_include       file \.shtml$
mod_gzip_item_include       file \index$
mod_gzip_item_include       mime ^text/.*
mod_gzip_item_include       mime ^application/x-httpd-php
mod_gzip_item_include       mime ^httpd/unix-directory$
mod_gzip_item_include       handler ^perl-script$
mod_gzip_item_include       handler ^server-status$
mod_gzip_item_include       handler ^server-info$
mod_gzip_item_exclude       file \.css$
mod_gzip_item_exclude       file \.js$
mod_gzip_item_exclude       mime ^image/.*
mod_gzip_item_exclude   file \.gif$
mod_gzip_item_exclude   file \.jpg$
mod_gzip_item_exclude   file \.jpeg$
mod_gzip_item_exclude   file \.png$

<Files \.gif$>
 mod_gzip_on No
</Files>

<Files \.jpg$>
 mod_gzip_on No
</Files>