elaka / mod-spdy

Automatically exported from code.google.com/p/mod-spdy
0 stars 0 forks source link

mod_spdy disables gzip content response on Firefox 13beta #44

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What version/revision number of mod_spdy are you using?
mod-spdy-beta-0.9.2.1-332.x86_64

What version of Apache are you using, and on what operating system?  (Use
`apache2ctl -v` to check.)
httpd-2.2.15-15.0.1.el6_2.1.x86_64
Server version: Apache/2.2.15 (Unix)
Server built:   Feb 13 2012 18:23:33

What other Apache modules are you using?  (Use `apache2ctl -M` to check.)
Loaded Modules:
 core_module (static)
 mpm_worker_module (static)
 http_module (static)
 so_module (static)
 auth_basic_module (shared)
 auth_digest_module (shared)
 authn_file_module (shared)
 authn_alias_module (shared)
 authn_anon_module (shared)
 authn_dbm_module (shared)
 authn_default_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 authz_owner_module (shared)
 authz_groupfile_module (shared)
 authz_dbm_module (shared)
 authz_default_module (shared)
 ldap_module (shared)
 authnz_ldap_module (shared)
 include_module (shared)
 log_config_module (shared)
 logio_module (shared)
 env_module (shared)
 ext_filter_module (shared)
 mime_magic_module (shared)
 expires_module (shared)
 deflate_module (shared)
 headers_module (shared)
 usertrack_module (shared)
 setenvif_module (shared)
 mime_module (shared)
 dav_module (shared)
 status_module (shared)
 autoindex_module (shared)
 info_module (shared)
 dav_fs_module (shared)
 vhost_alias_module (shared)
 negotiation_module (shared)
 dir_module (shared)
 actions_module (shared)
 speling_module (shared)
 userdir_module (shared)
 alias_module (shared)
 rewrite_module (shared)
 proxy_module (shared)
 proxy_balancer_module (shared)
 proxy_ftp_module (shared)
 proxy_http_module (shared)
 proxy_connect_module (shared)
 cache_module (shared)
 suexec_module (shared)
 disk_cache_module (shared)
 cgi_module (shared)
 version_module (shared)
 ssl_module (shared)
 pagespeed_module (shared)
 spdy_module (shared)

What browser version did you use to access the mod_spdy server?  On what
operating system? What flags was the browser invoked with?  (For
Chrome/Chromium, go to about:version to check.)
Firefox 13.0 beta

What steps will reproduce the problem?
Accessing a mod_spdy site with Firefox and spdy enabled in about:config, 
content returned from Apache are not gzip encoded even though mod_gzip is 
properly configured. Disabling spdy in Firefox resumes gzipping, as well as 
accessing the spdy enabled server from Chrome.

Firefox appears to be sending the appropriate headers but the enablement of 
mod_spdy specifically interferes with whether content is returned gzipped or 
not.
Request:
GET /slm/login.op HTTP/1.1
Host: rally4rally.rallydev.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:13.0) 
Gecko/20100101 Firefox/13.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive

Response in Firefox:
HTTP/1.1 200 OK
Cache-Control: max-age=0, no-cache
Content-Language: en-US
Content-Type: text/html; charset=utf-8
Date: Wed, 23 May 2012 23:13:41 GMT
Login-Page: true
Pragma: no-cache
Set-Cookie: 
__utma=243971078.409335667.1337289589.1337289589.1337620717.2;Path=/;Expires=Thu
, 01-Jan-1970 00:00:00 GMT
__utmz="243971078.1337289589.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)";
Path=/;Expires=Thu, 01-Jan-1970 00:00:00 GMT
JSESSIONID=;Path=/slm;Expires=Thu, 01-Jan-1970 00:00:00 GMT
Vary: Accept-Encoding
X-Mod-Pagespeed: 0.10.21.2-1601
x-mod-spdy: 0.9.2.1-332
X-Firefox-Spdy: 1

Note: Chrome is correctly returned content gzipped for the same server
Response in Chrome:
HTTP/1.1 200 OK
status:200
version:HTTP/1.1
cache-control:max-age=0, no-cache
content-encoding:gzip
content-language:en-US
content-type:text/html; charset=utf-8
date:Wed, 23 May 2012 23:14:43 GMT
login-page:true
pragma:no-cache
set-cookie:JSESSIONID=;Path=/slm;Expires=Thu, 01-Jan-1970 00:00:00 GMT
vary:Accept-Encoding
x-mod-pagespeed:0.10.21.2-1601
x-mod-spdy:0.9.2.1-332

Site to view this:
https://rally4rally.rallydev.com/slm/login.op

Original issue reported on code.google.com by tar...@gmail.com on 23 May 2012 at 11:16

GoogleCodeExporter commented 8 years ago
Verified also not working with Firefox 13 final. Any news here?

Original comment by tar...@gmail.com on 5 Jun 2012 at 4:16

GoogleCodeExporter commented 8 years ago
GZIP compression is pointless with SPDY, since SPDY itself compresses data. 
Isnt it?

Original comment by ggrun...@gmail.com on 11 Jun 2012 at 3:53

GoogleCodeExporter commented 8 years ago
No, it is not compressing payload (headers are compressed)

http://dev.chromium.org/spdy/spdy-protocol/spdy-protocol-draft3#TOC-4.7-Data-Com
pression

Original comment by M.Han...@nuplays.com on 11 Jun 2012 at 10:03

GoogleCodeExporter commented 8 years ago
I found SPDY_VERSION...

I added this before my SetOutpuFilter DEFLATE and other gzip/deflate parameters 
and it started compressing all SPDY enabled content.

# fix gzip for Firefox which neglects to send gzip headers with spdy
RequestHeader set Accept-Encoding "gzip, deflate" env=SPDY_VERSION

Original comment by tar...@gmail.com on 11 Jul 2012 at 10:42

GoogleCodeExporter commented 8 years ago
This is fixed in trunk as of r334.  You will get the fix after updating to 
release v0.9.2.2 (which should be going out today).

The issue was that Firefox wasn't sending the Accept-Encoding:gzip header, 
because according to the SPDY spec, it doesn't have to -- SPDY servers are 
allowed to simply assume that the client supports gzip.  The problem was that 
mod_spdy wasn't making that assumption as it should have.

Original comment by mdste...@google.com on 31 Jul 2012 at 5:09