Current time: 04-06-2020, 02:03 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error with deflated files
09-20-2012, 12:14 AM
Post: #1
Error with deflated files
Hi,

WebPageTest is complaining that may texts assets could be gzipped.

For example http://www.webpagetest.org/result/120919...imization/

On redbot the header show tht it's gzipped
http://redbot.org/?uri=http%3A%2F%2Fwww....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) -

But the stats are :
Quote:Original Size: 75.92 KB
Compressed Size: 26.1 KB
Data Savings: 65.62%

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.
Find all posts by this user
Quote this message in a reply
09-21-2012, 01:12 AM
Post: #2
RE: Error with deflated files
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.../#request1

My guess is you have a config that is breaking gzip for IE only which is why redbot isn't detecting it.
Visit this user's website Find all posts by this user
Quote this message in a reply
09-25-2012, 05:04 PM
Post: #3
RE: Error with deflated files
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,

(09-21-2012 01:12 AM)pmeenan Wrote:  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.../#request1

My guess is you have a config that is breaking gzip for IE only which is why redbot isn't detecting it.
Find all posts by this user
Quote this message in a reply
09-26-2012, 01:06 AM
Post: #4
RE: Error with deflated files
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.
Visit this user's website Find all posts by this user
Quote this message in a reply
09-26-2012, 01:25 AM
Post: #5
RE: Error with deflated files
I put a test file: http://www.aizenko.com/test.htm

For the directives

<IfModule mod_deflate.c>
<Location />
#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
</Location>
</IfModule>
Find all posts by this user
Quote this message in a reply
09-26-2012, 01:54 AM
Post: #6
RE: Error with deflated files
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
Visit this user's website Find all posts by this user
Quote this message in a reply
09-26-2012, 01:59 AM
Post: #7
RE: Error with deflated files
Thannnkssss!!!

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

My world regain some balance.

Regards
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)