[Mod_gzip] Configuration Question
Andrew Jarman
mod_gzip@lists.over.net
Fri, 25 Oct 2002 13:52:27 -0600
You must be careful with compressing .js files and IE. About a year ago, we
were playing with a web UI that used a lot of .js files, and we wanted to
compress them. We found that occassionally, IE would not decompress these
files properly. The decompressed file would have some plain text, then a
bunch of garbage (or maybe it was the other way around).
This problem was hard to track down, as it seemed to be timing dependant.
I saw something recently on this list where people are putting 2K of spaces
at the front of their .js file for transfer in gzip. gzip would compress
this anyway, and it seemed to get around the IE problem.
Maybe somebody else can comment further.
-----Original Message-----
From: Matt Manfredonia [mailto:mmanfredonia@excitenetwork.com]
Sent: Friday, October 25, 2002 1:20 PM
To: 'mod_gzip@lists.over.net'
Subject: [Mod_gzip] Configuration Question
This is probably a simple question....
We want to try to compress so js files that are used in script includes. We
have noticed problems with nested js file for browser versions of netscape
(less than v7)
So if I enable compression of .js files:
mod_gzip_item_include file \.htm$
mod_gzip_item_include file \.html$
mod_gzip_item_include file \.js$
Is there a way to configure the server to deny Netscape browsers compressed
files with extension .js?
I figure I can block all Netscape (js and html) with:
mod_gzip_item_exclude reqheader "^Mozilla/4.8"
...
mod_gzip_item_exclude reqheader "^Mozilla/4.01"
or in apache
BrowserMatch "^Mozilla/4.8" 'no-gzip'
...
BrowserMatch "^Mozilla/[1-3]" 'no-gzip'
But I was looking to get more granular
Any help would be great (or if there is a better way to not compress for all
netscape that would be helpful too)
Thanks
--matt
_______________________________________________
mod_gzip mailing list
mod_gzip@lists.over.net
http://lists.over.net/mailman/listinfo/mod_gzip