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 But the stats are : Quote:Original Size: 75.92 KB 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. |
|||
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. |
|||
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? |
|||
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. |
|||
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> |
|||
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 |
|||
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 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)