可以在Firefox上访问网站,但不能在Safari上访问网站(kCFErrorDomainCFNetwork错误303),也不能通过Chrome浏览器(net :: ERR_SPDY_PROTOCOL_ERROR) [英] Website OK on Firefox but not on Safari (kCFErrorDomainCFNetwork error 303) neither Chrome (net::ERR_SPDY_PROTOCOL_ERROR)

查看:601
本文介绍了可以在Firefox上访问网站,但不能在Safari上访问网站(kCFErrorDomainCFNetwork错误303),也不能通过Chrome浏览器(net :: ERR_SPDY_PROTOCOL_ERROR)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几天以来,我的网站无法在Safari或Mac OS X上的Chrome(无论是在家还是在我的客户端计算机上)上加载.它在Firefox(Mac OS和Windows)和IE/Edge(而不是Chrome)(Windows)上运行良好. 在此之前,它运行良好,并且自几周以来就没有更新.

Since some days, my website won't load on Safari nor Chrome on Mac OS X (at home nor on my clients computers). It's working well on Firefox (Mac OS & Windows) and IE / Edge, but not Chrome (Windows). It was well working before that and was not updated since weeks.

我在Safari上遇到此错误

I'm facing this error on Safari

Failed to load resource: The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 303.)

这是在Chrome上的

And this one on Chrome

 Failed to load resource: net::ERR_SPDY_PROTOCOL_ERROR

这似乎与HTTP/2有关,但我真的不知道出了什么问题.

It seem's to be related to HTTP/2 but I don't really know what is the problem.

我看到一种解决方法是清除缓存和cookie. 我这样做了,并且在我第一次加载网站时就可以在Chrome上运行,但是当我导航到另一个页面时,该错误再次出现. 我还冲洗了打开的插座,没有任何影响.

I saw that a workaround is to clear the cache and cookie. I did and it works on Chrome the first time I load the website, but when I navigate to another page, the error appear again. I also flush opened socket without effects.

在Safari上,刷新缓存和cookie无效.

On Safari, flushing the cache and cookie has no effects.

我的托管人(OVH)告诉我问题出在我的代码中,但我不知道该错误在哪里.

My hoster (OVH) tells me that the problem is in my code but I cannot figure out where could be the bug.

您对此有任何线索吗?

非常感谢

推荐答案

我们遇到了nginx和HTTP/2的问题,这导致了Safari中的相同错误和Internet Explorer中的类似错误.

We have had a problem with nginx and HTTP/2 which resulted in the same error in Safari and a similar error in Internet Explorer.

当我们将nginx缓冲区调整为:

When we tweaked the nginx buffers to be:

http2_max_field_size 16k; http2_max_header_size 128k;

http2_max_field_size 16k; http2_max_header_size 128k;

问题消失了.

这篇关于可以在Firefox上访问网站,但不能在Safari上访问网站(kCFErrorDomainCFNetwork错误303),也不能通过Chrome浏览器(net :: ERR_SPDY_PROTOCOL_ERROR)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆