I just discovered a very strange behaviour on Chrome while trying to accesss some pages. It will prompt to download them as .gz
files instead of loading them.
This happens only with current Chrome and on all platforms.
When the page is properly loaded I can see this on the Inspector
Resource interpreted as Document but transferred with MIME type application/x-gzip:
"https://confluence.example.com/display/engp/PR-1221".
I know that these are served by an nginx server which is configured to use gzip compression, but there is nothing wrong with this.
gzip on; # that's on nginx part
I am almost sure this is something wrong with nginx configuration, but what?
What makes the problem even more interesting (and annoying) is that if you copy the URL from the hyperlink and paste it to the browser it will just open the page correctly. Yep, this happens only on hyperlinks.
I tried to find a bug report on chrome on this but the only thing I was able to find is that others did report a similar if not the same problem with reddit pages or github.com
ones.
Request URL:https://confluence.example.com/display/engp/PR-1221
Request Method:GET
Status Code:200 OK
Request Headersview source
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Charset:UTF-8,*;q=0.5
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Connection:keep-alive
DNT:1
Host:example.com
Referer:https://example.com/browse/PR-1221
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.152 Safari/537.22
Response Headersview source Access-Control-Allow-Credentials:true Access-Control-Allow-Headers:DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type Access-Control-Allow-Methods:GET, POST, OPTIONS, HEAD Access-Control-Allow-Origin:* Baz:bah Cache-Control:no-cache, must-revalidate Connection:keep-alive Content-Encoding:gzip Content-Type:text/html;charset=UTF-8 Date:Mon, 04 Mar 2013 13:29:48 GMT Expires:Thu, 01 Jan 1970 00:00:00 GMT Foo:bar Server:nginx/1.2.6 Transfer-Encoding:chunked X-Confluence-Request-Time:1362403788150 X-Seraph-LoginReason:OK