What's the net::ERR_HTTP2_PROTOCOL_ERROR about?

前端 未结 22 2682
無奈伤痛
無奈伤痛 2020-12-01 02:24

I\'m currently working on a website, which triggers a net::ERR_HTTP2_PROTOCOL_ERROR 200 error on Google Chrome. I\'m not sure exactly what can provoke this erro

22条回答
  •  [愿得一人]
    2020-12-01 03:03

    This error is currently being fixed: https://chromium-review.googlesource.com/c/chromium/src/+/2001234

    But it helped me, changing nginx settings:

    • turning on gzip;
    • add_header 'Cache-Control' 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
    • expires off;

    In my case, Nginx acts as a reverse proxy for Node.js application.

提交回复
热议问题