[ 
https://issues.apache.org/jira/browse/TS-3026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14104073#comment-14104073
 ] 

Scott Beardsley commented on TS-3026:
-------------------------------------

Sudheer I think that makes sense. It might not be necessary for origins which 
are also speaking SPDY but that is a premature optimization. The chromium folks 
appear to have taken the trade off of just sending the header instead of 
relying on the specific requirements in the spec. Specifically:

"""
See 
http://dev.chromium.org/spdy/spdy-protocol/spdy-protocol-draft3#TOC-3.2.1-Request
 where it says: "User-agents MUST support gzip compression. Regardless of the 
Accept-Encoding sent by the user-agent, the server may always send content 
encoded with gzip or deflate encoding."
"""

I think TS would need to solve this one of two ways:

1. make sure the accept-encoding header is always present when the origin 
doesn't speak spdy but spdy is being used between the proxy and user agent.
2. tell the origin that the proxy is speaking spdy (and update all origins to 
understand that signal and gzip accordingly)
3. makes sure to gzip all SPDY traffic which is compressible (and look at 
content-type responses to make sure jpegs aren't compressed)

#1 sounds like the easiest ;)

> SPDY not forwarding Accept-Encoding headers for Firefox
> -------------------------------------------------------
>
>                 Key: TS-3026
>                 URL: https://issues.apache.org/jira/browse/TS-3026
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: SPDY
>            Reporter: Scott Beardsley
>             Fix For: sometime
>
>         Attachments: Screen Shot 2014-08-20 at 1.06.42 AM.png
>
>
> Firefox is claiming to be sending the Accept-Encoding header (specifically 
> "Accept-Encoding: gzip, deflate") but somewhere it appears to be dropped. I 
> don't see it show up in the logs with http.* debug on. Here is what TS sees:
> +++++++++ Incoming Request +++++++++
> -- State Machine Id: 0
> GET
> http://origin.example.com/
> HTTP/1.1
> accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> accept-language: en-US,en;q=0.5
> cookie: <cookies>
> dnt: 1
> user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:32.0)
> Gecko/20100101 Firefox/32.0
> Host: example.com



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to