Website OK on Firefox but not on Safari (kCFErrorDomainCFNetwork error 303) neither Chrome (net::ERR_SPDY_PROTOCOL_ERROR)

Al3 picture Al3 · Apr 19, 2018 · Viewed 8.6k times · Source

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.

I'm facing this error on Safari

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

And this one on Chrome

 Failed to load resource: net::ERR_SPDY_PROTOCOL_ERROR

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

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.

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

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

Do you have any clue about that ?

Thanks a lot

Answer

uson1x picture uson1x · May 21, 2018

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.

When we tweaked the nginx buffers to be:

http2_max_field_size 16k;
http2_max_header_size 128k;

the issue was gone.