Error with deflated files

Hi,

WebPageTest is complaining that may texts assets could be gzipped.

For example http://www.webpagetest.org/result/120919_5Q_9M3/1/performance_optimization/

On redbot the header show tht it’s gzipped
http://redbot.org/?uri=http%3A%2F%2Fwww.aizenko.com%2Fjs%2Fjquery-1.4.3.min.js

[quote]GZIP encode all appropriate text assets: 23/100
4.3 KB total in compressible text, target size = 1.0 KB - potential savings = 3.3 KB
FAILED - (4.3 KB, compressed = 1.0 KB - savings of 3.3 KB) - [/quote]

But the stats are :

[quote]Original Size: 75.92 KB
Compressed Size: 26.1 KB
Data Savings: 65.62%
[/quote]

Big difference in size, did WPT get only a chunk?

On my local test (apache 2,2 too) i got now problem, and (i think) the same configurations for apache.

Regards.

You can’t download javascript files directly in IE - it opens a file download dialog and abandons the download when it is closed (since I don’t allow downloads). Can you put up a simple html page that JUST includes that file?

FWIW, the response headers are not including content-encoding so it’s likely it isn’t really gzipped, it’s just that the savings estimate is off - http://www.webpagetest.org/result/120919_5Q_9M3/1/details/#request1

My guess is you have a config that is breaking gzip for IE only which is why redbot isn’t detecting it.

Hi,

Thanks for your reply.

What do you mean by a page jus including the file? One with just the script tag?

What test can i use to detect problem on IE. I’m using the directives as describe in the Apache doc.

Regards,

Yes, one with just the script tag (or even just a normal page that includes the script) so the browser will download the script normally.

What rules do you have that include MSIE? A fair number of them were broken on older versions of the apache doc and are no longer relevant.

I put a test file: http://www.aizenko.com/test.htm

For the directives

#Insert filter SetOutputFilter DEFLATE # Netscape 4.x has some problems... BrowserMatch ^Mozilla/4 gzip-only-text/html # Netscape 4.06-4.08 have some more problems BrowserMatch ^Mozilla/4\.0[678] no-gzip # MSIE masquerades as Netscape, but it is fine # BrowserMatch \bMSIE no-gzip !gzip-only-text/html # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48 # the above regex won't work. You can use the following # workaround to get the desired effect: BrowserMatch \bMSI[E] no-gzip !gzip-only-text/html # Don't compress images SetEnvIfNoCase Request_URI \ \.(?:gif|jpe?g|png|flv|f4v|m4v|mov|mp4)$ no-gzip dont-vary # Make sure proxies don't deliver the wrong content Header append Vary User-Agent env=!dont-vary

Well, THERE’s your problem:

BrowserMatch \bMSI[E] no-gzip !gzip-only-text/html

should be:

BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

http://httpd.apache.org/docs/2.2/mod/mod_deflate.html

Thannnkssss!!!

Did not spot this little difference between my 2 httpd.conf!!!

My world regain some balance.

Regards