WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
9521
Safari fails to load Gzip compressed JavaScript or CSS
https://bugs.webkit.org/show_bug.cgi?id=9521
Summary
Safari fails to load Gzip compressed JavaScript or CSS
Eric Seidel (no email)
Reported
2006-06-20 23:20:12 PDT
http://pdatabase.dyndns.biz/baldness.js.gz
$ curl -I
http://pdatabase.dyndns.biz/baldness.js.gz
HTTP/1.1 200 OK Date: Wed, 21 Jun 2006 06:12:38 GMT Server: Apache/1.3.34 (Unix) PHP/4.3.10 Last-Modified: Thu, 25 May 2006 21:21:18 GMT ETag: "4e4645-cf2a-44761fce" Accept-Ranges: bytes Content-Length: 53034 Content-Type: application/x-javascript Content-Encoding: x-gzip It looks to be sent correctly. But Safari fails to load it. It's used by:
http://pdatabase.dyndns.biz/test16.php
Attachments
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2006-06-21 02:04:25 PDT
The network layer doesn't ask for x-gzip, but the server still sends it: Accept-Encoding: gzip, deflate
Alexey Proskuryakov
Comment 2
2006-06-21 02:31:38 PDT
Strange, the previous comment didn't get through in its entirety :-O ...So, I think this is a server bug, and also probably a CFNetwork limitation.
Kirk Cerny
Comment 3
2007-08-16 15:30:30 PDT
Safari will not load my javascript or my css when it is gziped. The headers are correct, the file name seems to be the issue. If the file has a .gz extension it will not be rendered. If I use the apache module mod_gzip the css gets gzipped but it does not add the .gz extension, and safari renders the css. The headers in both cases are exactly the same except for the file name. Content-Type text/css Content-Encoding gzip
Alexey Proskuryakov
Comment 4
2007-08-16 21:47:41 PDT
(In reply to
comment #3
)
> Safari will not load my javascript or my css when it is gziped.
Could you please provide an URL to a test case?
David Kilzer (:ddkilzer)
Comment 5
2007-08-16 23:18:15 PDT
Does this technique work in Firefox 2.0.0.x? Opera 9.2x? MSIE 6/7?
Kirk Cerny
Comment 6
2007-08-17 08:10:56 PDT
(In reply to
comment #5
)
> Does this technique work in Firefox 2.0.0.x? Opera 9.2x? MSIE 6/7? >
Yes, the .gz extension works in Firefox 2.0.0.x Opera 9.2x MSIE 6/7
Kirk Cerny
Comment 7
2007-08-17 08:16:41 PDT
(In reply to
comment #4
)
> (In reply to
comment #3
) > > Safari will not load my javascript or my css when it is gziped. > > Could you please provide an URL to a test case? >
http://kirk.galaxytechsolutions.com
David Kilzer (:ddkilzer)
Comment 8
2007-08-17 08:45:43 PDT
<
rdar://problem/5418646
>
Joost P. Vermeer
Comment 9
2007-09-04 11:15:05 PDT
Quote of HTTP spec: RFC 2616 - Hypertext Transfer Protocol 3.5 Content Codings Use of program names for the identification of encoding formats is not desirable and is discouraged for future encodings. Their use here is representative of historical practice, not good design. For compatibility with previous implementations of HTTP, applications SHOULD consider "x-gzip" and "x-compress" to be equivalent to "gzip" and "compress" respectively.
David Kilzer (:ddkilzer)
Comment 10
2007-09-04 11:37:11 PDT
Marking bug RESOLVED/INVALID since this is not a WebKit bug. The issue will be tracked internally through the Radar bug. Thanks!
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug