net::ERR_HTTP2_PROTOCOL_呈现大型html文件时出错200
我在nginx和Cloudflare后面有一个golang应用程序,它提供大型html文件,但我注意到,对于GET请求,在大约900KB大小之后,html被构建,页面按钮不显示 Firefox和Chrome都存在这个问题。在Chrome控制台中,我得到:net::ERR_HTTP2_PROTOCOL_呈现大型html文件时出错200,html,go,nginx,Html,Go,Nginx,我在nginx和Cloudflare后面有一个golang应用程序,它提供大型html文件,但我注意到,对于GET请求,在大约900KB大小之后,html被构建,页面按钮不显示 Firefox和Chrome都存在这个问题。在Chrome控制台中,我得到: net::ERR_HTTP2_PROTOCOL_ERROR 200 这是我的nginx.conf相关部分 http { sendfile on; tcp_nopush on; tcp_nodel
net::ERR_HTTP2_PROTOCOL_ERROR 200
这是我的nginx.conf相关部分
http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
types_hash_max_size 2048;
client_body_buffer_size 10K;
client_header_buffer_size 1k;
client_max_body_size 8m;
large_client_header_buffers 2 1k;
include /etc/nginx/mime.types;
default_type application/octet-stream;
client_body_timeout 12;
client_header_timeout 12;
keepalive_timeout 15;
send_timeout 10;
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 9;
gzip_buffers 32 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
我将gzip_缓冲区
从164k
增加到328k
,甚至禁用了gzip压缩,但这并没有解决问题
感谢您的提示以解决此问题。请检查此资源:。这会对你有帮助。