Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

Firefox 28.0 developer tools error with Accept-Encoding

  • 4 trả lời
  • 4 gặp vấn đề này
  • 2 lượt xem
  • Trả lời mới nhất được viết bởi frankbb

more options

Hi,

When i do an SPDY request to a SPDY capable web server (NGINX) Firefox developer tools says that the Accept-Encoding request header is added.

Accept	                text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding	gzip, deflate
Accept-Language	nl,en-US;q=0.7,en;q=0.3
Cache-Control	        no-cache
Connection	        keep-alive
Cookie	                originURI=
Host	                        $host
Pragma	                no-cache
User-Agent	        Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0

When i enable debugging in NGINX there is no Accept-Encoding request header.

2014/04/15 10:15:10 [debug] 21157#0: *1 http exten: "css"
2014/04/15 10:15:10 [debug] 21157#0: *1 spdy http request line: "GET /mxui/ui/mxui.css HTTP/1.1"
2014/04/15 10:15:10 [debug] 21157#0: *1 http header: "host: $host"
2014/04/15 10:15:10 [debug] 21157#0: *1 http header: "user-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28
.0"
2014/04/15 10:15:10 [debug] 21157#0: *1 http header: "accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
2014/04/15 10:15:10 [debug] 21157#0: *1 http header: "accept-language: nl,en-US;q=0.7,en;q=0.3"
2014/04/15 10:15:10 [debug] 21157#0: *1 generic phase: 0

- Is there a reason not to sent the accept-encoding header when doing a SPDY request? (Chrome is sending this request header with SPDY).

Regards,

Frank

Hi, When i do an SPDY request to a SPDY capable web server (NGINX) Firefox developer tools says that the Accept-Encoding request header is added. <pre><nowiki>Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Encoding gzip, deflate Accept-Language nl,en-US;q=0.7,en;q=0.3 Cache-Control no-cache Connection keep-alive Cookie originURI= Host $host Pragma no-cache User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0</nowiki></pre> When i enable debugging in NGINX there is no Accept-Encoding request header. <pre><nowiki>2014/04/15 10:15:10 [debug] 21157#0: *1 http exten: "css" 2014/04/15 10:15:10 [debug] 21157#0: *1 spdy http request line: "GET /mxui/ui/mxui.css HTTP/1.1" 2014/04/15 10:15:10 [debug] 21157#0: *1 http header: "host: $host" 2014/04/15 10:15:10 [debug] 21157#0: *1 http header: "user-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28 .0" 2014/04/15 10:15:10 [debug] 21157#0: *1 http header: "accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" 2014/04/15 10:15:10 [debug] 21157#0: *1 http header: "accept-language: nl,en-US;q=0.7,en;q=0.3" 2014/04/15 10:15:10 [debug] 21157#0: *1 generic phase: 0</nowiki></pre> - Is there a reason not to sent the accept-encoding header when doing a SPDY request? (Chrome is sending this request header with SPDY). Regards, Frank

Được chỉnh sửa bởi cor-el vào

Tất cả các câu trả lời (4)

more options

This is because it already does by default. http://kb.mozillazine.org/Network.http.accept-encoding

Check out the about:config page and look what it is set to.

Hope this helps.

more options

But the problem is that the request header accept-encoding is not sent when doing a SPDY request while Firefox says it does.

more options

Oh I see, the SDY request version of the request does not have encoding but the Web dev tools version of the request does have it.

SDY is an open Google project that uses this type of compression: https://developers.google.com/speed/w.../compression is also removes some headers https://developers.google.com/speed/a.../spdy-for-mobile

Then there is this: https://developers.google.com/speed/a.../gzip It looks like the server/spdy is ignoring that encoding header?

Which one does it request first? I assume that the request is from Firefox, then is received by the spdy proxy, where it looks like it is ignored?

Được chỉnh sửa bởi guigs vào

more options

Maybe this makes my request more clear: http://trac.nginx.org/nginx/ticket/542

It seems that Firefox won't send Accept-Encoding header over SPDY and that caused confusion and when i tried to debug developer tools told me that Accept-Encoding is sent.

Được chỉnh sửa bởi frankbb vào