2012-01-28 46 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

相关问题