What does ERR_SPDY_PROTOCOL_ERROR mean in nginx?

后端 未结 14 2363
无人共我
无人共我 2020-12-09 01:45

I and a few of my colleagues got the net::ERR_SPDY_PROTOCOL_ERROR error.

We use ngnix version 1.8.0. The error is not stable (hard to replicate), and t

14条回答
  •  醉酒成梦
    2020-12-09 02:07

    This is a known issue that exists between Chromium browsers and certain antivirus programs such as AVG and Avast, especially when using a SSL connection. It cannot be resolved on the user's end. It's up to website developers to prevent this issue from happening.

    The documentation for web developers is here: http://dev.chromium.org/spdy/spdy-best-practices

    Here are some helpful hints for developers that are not specifically mentioned in that article:

    • Be extremely careful when using headers and redirects, especially 301 and 302's
    • Keep all your includes in or under the same directory as your domain name access, not above the directory in the server. Antivirus cannot access them there. To protect your include files, create a .htaccess file in the includes directory and simply write one line: Deny from all
    • Enable Gzip compression. If you use cPanel, this can be done in your Website Optimization settings.
    • Keep your .htaccess file simple. Switching server outputs to create different file extensions and redirecting user clients will create unnecessary conflict.

    In my experience, this issue only seems to occur when using Sessions to store and pass data. Cookies, Get and Post seem to not be affected.

    Hope this helps.

提交回复
热议问题