When navigating through Bitbucket from time to time Pages are downloaded instead of being rendered.
For example when clicking on the Wiki Page for a Repository The browser starts a download. Clicking it again the browser renders this page. The same goes for almost every link on Bitbucket. This behavior is random and occurs very often which is quite annoying.
It seems that Bitbucket destroys the headers sent to the client. They're saved with the downloaded page (Viewed with vi):
^_<8b>^H^@^@^@^@^@^@^C^C^@^@^@^@^@^@^@^@^@HTTP/1.1 200 OK^M Server: nginx/1.2.4^M Date: Sat, 29 Dec 2012 13:11:20 GMT^M Content-Type: text/html; charset=utf-8^M Transfer-Encoding: chunked^M Connection: keep-alive^M X-Served-By: bitbucket05^M Vary: Cookie^M X-Version: b04dbe374cd4^M ETag: "261c9f742df3adbd4e1077ada61dc2c7"^M X-Static-Version: afebfb091096^M X-Request-Count: 371^M Strict-Transport-Security: max-age=2592000^M Content-Encoding: gzip^M ^M