<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>9521</bug_id>
          
          <creation_ts>2006-06-20 23:20:12 -0700</creation_ts>
          <short_desc>Safari fails to load Gzip compressed JavaScript or CSS</short_desc>
          <delta_ts>2017-10-27 10:13:38 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=178941</see_also>
          <bug_file_loc>http://pdatabase.dyndns.biz/baldness.js.gz</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P4</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>cgriego</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>ian</cc>
    
    <cc>jp</cc>
    
    <cc>kirksemail</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>46502</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2006-06-20 23:20:12 -0700</bug_when>
    <thetext>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: &quot;4e4645-cf2a-44761fce&quot;
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&apos;s used by:

http://pdatabase.dyndns.biz/test16.php</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46523</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-06-21 02:04:25 -0700</bug_when>
    <thetext>The network layer doesn&apos;t ask for x-gzip, but the server still sends it:

Accept-Encoding: gzip, deflate</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46525</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-06-21 02:31:38 -0700</bug_when>
    <thetext>Strange, the previous comment didn&apos;t get through in its entirety :-O

...So, I think this is a server bug, and also probably a CFNetwork limitation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2133</commentid>
    <comment_count>3</comment_count>
    <who name="Kirk Cerny">kirksemail</who>
    <bug_when>2007-08-16 15:30:30 -0700</bug_when>
    <thetext>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


</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2110</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-08-16 21:47:41 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; Safari will not load my javascript or my css when it is gziped.

Could you please provide an URL to a test case?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2113</commentid>
    <comment_count>5</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-08-16 23:18:15 -0700</bug_when>
    <thetext>Does this technique work in Firefox 2.0.0.x?  Opera 9.2x?  MSIE 6/7?

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2093</commentid>
    <comment_count>6</comment_count>
    <who name="Kirk Cerny">kirksemail</who>
    <bug_when>2007-08-17 08:10:56 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; Does this technique work in Firefox 2.0.0.x?  Opera 9.2x?  MSIE 6/7?
&gt; 

Yes, the .gz extension works in Firefox 2.0.0.x  Opera 9.2x  MSIE 6/7

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2096</commentid>
    <comment_count>7</comment_count>
    <who name="Kirk Cerny">kirksemail</who>
    <bug_when>2007-08-17 08:16:41 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; Safari will not load my javascript or my css when it is gziped.
&gt; 
&gt; Could you please provide an URL to a test case?
&gt; 

http://kirk.galaxytechsolutions.com
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2084</commentid>
    <comment_count>8</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-08-17 08:45:43 -0700</bug_when>
    <thetext>&lt;rdar://problem/5418646&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>942</commentid>
    <comment_count>9</comment_count>
    <who name="Joost P. Vermeer">jp</who>
    <bug_when>2007-09-04 11:15:05 -0700</bug_when>
    <thetext>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 &quot;x-gzip&quot; and &quot;x-compress&quot; to be
        equivalent to &quot;gzip&quot; and &quot;compress&quot; respectively.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>941</commentid>
    <comment_count>10</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-09-04 11:37:11 -0700</bug_when>
    <thetext>Marking bug RESOLVED/INVALID since this is not a WebKit bug.

The issue will be tracked internally through the Radar bug.  Thanks!

</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>