[英]What is wrong in chrome "net : Failed to load resource: net::ERR_SPDY_PROTOCOL_ERROR"?
Page on URL https://www.topmazoretkypraha.com/fotogalerie.html cannot load in Chrome properly. URL https://www.topmazoretkypraha.com/fotogalerie.html上的页面无法在 Chrome 中正确加载。 When I look to console in devtools there is 5 times an error : " Failed to load resource: net::ERR_SPDY_PROTOCOL_ERROR " .
当我在 devtools 中查看控制台时,出现 5 次错误:“无法加载资源:net::ERR_SPDY_PROTOCOL_ERROR ”。
Because of that 5 thumbnails of pictures of 5 galleries don't appear on screen.因为屏幕上没有出现 5 个画廊图片的 5 个缩略图。 I can find what requests are behind these errors.
我可以找到这些错误背后的请求。 It is for example GET of " https://www.topmazoretkypraha.com/phpThumb/phpThumb.php?src=/fotogalerie/2018/Kromeriz/img00001.jpg&w=120&h=120&hash=fb0137670311c4ace04dce839d03701e " .
例如“ https://www.topmazoretkypraha.com/phpThumb/phpThumb.php?src=/fotogalerie/2018/Kromeriz/img00001.jpg&w=120&h=120&hash=fb0137670311c4ace0403781e ”的GET
Because it is all about website hosting it could be hard to debug.因为这完全是关于网站托管,所以可能很难调试。 But I think there is a Nginx and than Apache with PHP.
但我认为有一个 Nginx 而不是 Apache 和 PHP。 The phpThumbnailer is requested by Chrome from HTML source.
Chrome 从 HTML 源请求 phpThumbnailer。 What should be my steps to solve this problem?
我应该采取什么步骤来解决这个问题?
I searched google but I'm rather confused than clever from that.我搜索了谷歌,但我对此感到困惑而不是聪明。 So I decided to ask here.
所以我决定在这里问。
include lines 108-132 of https://www.topmazoretkypraha.com/fotogalerie.html包括https://www.topmazoretkypraha.com/fotogalerie.html 的第 108-132 行
<div class="panelGaleries" align="justify">
<span class="orangetitle">Fotogalerie za rok 2018</span><br /><br />
<span class="bodytext">
<div style="position:relative;">
<a href="https://www.topmazoretkypraha.com/fotogalerie/2018/Kromeriz" class="linkPhotos jquery" title="O poklad hanáckých Atén"><img src="/phpThumb/phpThumb.php?src=/fotogalerie/2018/Kromeriz/img00001.jpg&w=120&h=120&hash=fb0137670311c4ace04dce839d03701e" alt="O poklad hanáckých Atén" /></a><a href="https://www.topmazoretkypraha.com/fotogalerie/2018/Kromeriz" class="galeriesLink jquery">O poklad hanáckých Atén</a>
</div>
<div style="clear:both;"> </div>
<div style="position:relative;">
<a href="https://www.topmazoretkypraha.com/fotogalerie/2018/Chodov" class="linkPhotos jquery" title="Majorettes Chodov"><img src="/phpThumb/phpThumb.php?src=/fotogalerie/2018/Chodov/img00001.jpg&w=120&h=120&hash=58dadfc8c122ee14c51487e5987a43d0" alt="Majorettes Chodov" /></a><a href="https://www.topmazoretkypraha.com/fotogalerie/2018/Chodov" class="galeriesLink jquery">Majorettes Chodov</a>
</div>
<div style="clear:both;"> </div>
<div style="position:relative;">
<a href="https://www.topmazoretkypraha.com/fotogalerie/2018/Kolin" class="linkPhotos jquery" title="Kmochův Kolín"><img src="/phpThumb/phpThumb.php?src=/fotogalerie/2018/Kolin/img00001.jpg&w=120&h=120&hash=e540c90e1f1608608984fcaeb8a3093f" alt="Kmochův Kolín" /></a><a href="https://www.topmazoretkypraha.com/fotogalerie/2018/Kolin" class="galeriesLink jquery">Kmochův Kolín</a>
</div>
<div style="clear:both;"> </div>
<div style="position:relative;">
<a href="https://www.topmazoretkypraha.com/fotogalerie/2018/MS" class="linkPhotos jquery" title="IFMS - Mistrovství světa"><img src="/phpThumb/phpThumb.php?src=/fotogalerie/2018/MS/img00001.jpg&w=120&h=120&hash=8f9f4b9fcd7d06a760c5c068cd413363" alt="IFMS - Mistrovství světa" /></a><a href="https://www.topmazoretkypraha.com/fotogalerie/2018/MS" class="galeriesLink jquery">IFMS - Mistrovství světa</a>
</div>
<div style="clear:both;"> </div>
<div style="position:relative;">
<a href="https://www.topmazoretkypraha.com/fotogalerie/2018/wannado" class="linkPhotos jquery" title="Wannado festival"><img src="/phpThumb/phpThumb.php?src=/fotogalerie/2018/wannado/img00001.jpg&w=120&h=120&hash=ddae43d181ff7378fed770527a92714d" alt="Wannado festival" /></a><a href="https://www.topmazoretkypraha.com/fotogalerie/2018/wannado" class="galeriesLink jquery">Wannado festival</a>
</div>
<div style="clear:both;"> </div>
</span>
</div>
there should be no error when data is loaded, but still there is加载数据时应该没有错误,但仍然有
The problem was that web hosting adds HTTP header Content-Encoding: gzip
for all the PHP content even when the Content-Type: image/jpeg
is in the output from that script.问题在于,即使
Content-Type: image/jpeg
在该脚本的输出中,网络托管也会为所有 PHP 内容添加 HTTP 标头Content-Encoding: gzip
。 For the hotfix I added HTTP header Content-Encoding: none
into that script.对于修补程序,我将 HTTP 标头
Content-Encoding: none
到该脚本中。 And it worked.它奏效了。 But now I am asking web hosting provider to not add the wrong header if
Content-Type: image/jpeg
is present.但现在我要求网络托管服务提供商在
Content-Type: image/jpeg
存在时不要添加错误的标题。 At HTTPS it makes sense.在 HTTPS 上,这是有道理的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.