2012-01-28 74 views

回答

1

您正在訪問的頁面可能有一個Content-Type標題,它告訴IE它不是網頁。所以它試圖將它保存在某個地方,因爲它不知道如何渲染。

這裏的輸出,當您使用捲曲

$ curl -v http://xanderadvertising.mcas.ro/ 

* About to connect() to xanderadvertising.mcas.ro port 80 (#0) 
* Trying 81.196.37.244... connected 
* Connected to xanderadvertising.mcas.ro (81.196.37.244) port 80 (#0) 
> GET/HTTP/1.1 
> User-Agent: curl/7.21.6 (i686-pc-linux-gnu) libcurl/7.21.6 OpenSSL/1.0.0e zlib/1.2.3.4 libidn/1.22 librtmp/2.3 
> Host: xanderadvertising.mcas.ro 
> Accept: */* 
> 
< HTTP/1.1 200 OK 
< Date: Sat, 28 Jan 2012 11:35:26 GMT 
< Server: Apache 
< X-Powered-By: PHP/5.2.16 
< Pragma: no-cache 
< ETag: "bcb2565425a8e41ac55b3b085fd8821c" 
< Cache-Control: public 
< Expires: Sun, 29 Jan 2012 11:31:43 GMT 
< Set-Cookie: PHPSESSID=89c110f3588929262dda820fb3d05052; expires=Sat, 11-Feb-2012 11:35:27 GMT; path=/; domain=xanderadvertising.mcas.ro 
< Last-Modified: Sat, 28 Jan 2012 11:31:43 GMT 
< Content-Length: 23822 
< Content-Type: charset=utf-8 

如果你看看最後一行,它說:Content-Type: charset=utf-8。嘗試將內容類型標題設置爲Content-Type: text/html; charset=UTF-8之類的內容。

+0

好的,我修復了「Content-type」問題,但問題依然存在。在接下來的評論中(來自@blacklwhite)我發佈了.htaccess。 – 2012-01-28 13:48:49

+0

我剛剛測試過它,現在正在工作...? 我認爲它與'Content-type'標題和緩存週期有關,它被設置爲1天。由於構造錯誤的Content-type:charset = utf-8'頭,IE瀏覽器被搞砸了,而且,> 1天后,它工作正常。 – 2012-01-29 09:50:58

0

頁特別是在其響應頭沒有Content-Type

Cache-Control:public 
Connection:Keep-Alive 
Date:Sat, 28 Jan 2012 11:32:06 GMT 
ETag:"bcb2565425a8e41ac55b3b085fd8821c" 
Expires:Sun, 29 Jan 2012 11:31:43 GMT 
Keep-Alive:timeout=5, max=100 
Server:Apache 

您需要添加Content-Type: text/html。將Content-Length發送到瀏覽器也是一件好事。

也許你可以告訴我們你的.htaccess配置?

+0

'內容類型'現在已經修復。 .htaccess是[這裏](http://pastie.org/private/w81sncuesiuv9pgd7kwog)。 – 2012-01-28 13:51:29

相關問題