Firefox - pages sometimes open in 'save as' dialog
Posted: Wed Jul 25, 2007 5:09 am
I have a CMSMS site that runs fine in IE. In Firefox, sometimes when a page loads, instead of loading into the browser as you would expect, Firefox opens a dialog prompting me to save/open the file. The message reads something like:
You have chosen to open [page name]
which is an application/octet-stream
Would you like to Open ... Save to disc ... ?
In other words, the browser is being served up a file it doesn't recognize as a web page, and treats it as an application/octet-stream instead.
If I save the file to disc, this is what it looks like:
‹ HTTP/1.1 200 OK
Date: Wed, 25 Jul 2007 03:29:49 GMT
Server: Apache/2.0.59 (CentOS)
X-Powered-By: PHP/4.3.9
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 2396
Keep-Alive: timeout=15, max=89
Connection: Keep-Alive
Content-Type: text/html; charset=UTF-8
[LARGE CHUNK OF GIBBERISH TEXT FOLLOWS, PRESUMABLY BINARY DATA]
Note that there are a few gibberish characters before the header starts, I am wondering if perhaps that is what is throwing the browser?
I thought perhaps using pretty URLs might be causing the problem, but it still happens whether they are on or off. I also changed the page options so they are not cacheable, but it still happens.
Also it is worth noting that occasionally while a page will load in Firefox, but it will take 10+ seconds, compared to the usual load time of less than 1 second.
Any ideas?
You have chosen to open [page name]
which is an application/octet-stream
Would you like to Open ... Save to disc ... ?
In other words, the browser is being served up a file it doesn't recognize as a web page, and treats it as an application/octet-stream instead.
If I save the file to disc, this is what it looks like:
‹ HTTP/1.1 200 OK
Date: Wed, 25 Jul 2007 03:29:49 GMT
Server: Apache/2.0.59 (CentOS)
X-Powered-By: PHP/4.3.9
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 2396
Keep-Alive: timeout=15, max=89
Connection: Keep-Alive
Content-Type: text/html; charset=UTF-8
[LARGE CHUNK OF GIBBERISH TEXT FOLLOWS, PRESUMABLY BINARY DATA]
Note that there are a few gibberish characters before the header starts, I am wondering if perhaps that is what is throwing the browser?
I thought perhaps using pretty URLs might be causing the problem, but it still happens whether they are on or off. I also changed the page options so they are not cacheable, but it still happens.
Also it is worth noting that occasionally while a page will load in Firefox, but it will take 10+ seconds, compared to the usual load time of less than 1 second.
Any ideas?