Typo3网站。有时在浏览网站时,浏览器会显示html代码而不是显示网站

问题描述 投票:2回答:1

我有一个Typo3网站(版本4.5.32)。有时(随机)当我在我的网站上浏览时,浏览器显示html代码而不是显示网页。

例如,它显示:

HTTP/1.1 200 OK
Date: Thu, 12 Feb 2015 11:36:29 GMT
Server: Apache
Set-Cookie: fe_typo_user=f4b8445b0719bd7490dcde98e7d8ff5b;
path=/; domain=.<my_domain>
Vary: Accept-Encoding,User-Agent
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=utf-8

bfee
<!DOCTYPE html>
<html lang="es-ES" xmlns="http://www.w3.org/1999/xhtml">
...
</html>
<!-- Cached page generated 12-02-15 12:35. Expires 13-02-15 12:35 -->
<!-- Parsetime: 0ms -->
0

什么时候应该显示网页。

另一个例子:

HTTP/1.1 200 OK
Date: Thu, 12 Feb 2015 11:41:19 GMT
Server: Apache
Set-Cookie: fe_typo_user=fd0199b1f48b719c097ef19418f18397; path=/; domain=.<my_domain>
Expires: 0
Last-Modified: Thu, 12 Feb 2015 11:41:19 GMT
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Set-Cookie: be_typo_user=71e6061cabf0d60a03739493561b67d9; path=/
Vary: Accept-Encoding,User-Agent
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=utf-8

9395
<!DOCTYPE html>
<html lang="es-ES" xmlns="http://www.w3.org/1999/xhtml">
...
</html>
<!-- Cached page generated 12-02-15 12:37. Expires 13-02-15 12:37 -->
<!-- Parsetime: 111ms -->
0

谢谢。

html typo3
1个回答
0
投票

实际输出之前的额外字符(bfee,9395)是以下数据块的长度。标头Transfer-Encoding: chunked还表示输出被切割成块(块)。

所有用户代理(浏览器等)都必须支持分块传输编码。也许在两者之间有一些代理废墟的经历?无论如何,它是决定使用这种传输编码而不是TYPO3的网络服务器。 TYPO3中唯一可能破坏事物的是使用t3lib_div::getUrl()检索内容时。如果在安装中激活了cURL,则此功能仅支持分块数据。

© www.soinside.com 2019 - 2024. All rights reserved.