[Mod_gzip] Caching working with mozilla but not IE
Auz
mod_gzip@lists.over.net
Sat, 10 Jan 2004 23:05:05 -0000
I've run into this before. IE refuses to cache images if they're sent with a
Vary header, which mod_gzip sends. The solution (from this post on the list:
http://lists.over.net/pipermail/mod_gzip/2002-December/006776.html) is to
switch off the Vary header explicitly for images using this in your config:
<Files ~ "\.(jpg|gif|png)$">
mod_gzip_send_vary Off
</Files>
- Auz
> -----Original Message-----
> From: mod_gzip-admin@lists.over.net
> [mailto:mod_gzip-admin@lists.over.net]On Behalf Of Matt Dickinson
> Sent: 10 January 2004 20:23
> To: mod_gzip@lists.over.net
> Subject: [Mod_gzip] Caching working with mozilla but not IE
>
>
> 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>
>
> _______________________________________________
> mod_gzip mailing list
> mod_gzip@lists.over.net
> http://lists.over.net/mailman/listinfo/mod_gzip
>