Nginx USES gzip_http_version to solve the problem that CDN only supports http 1.0

  • 2020-05-09 19:52:34
  • OfStack

After the website passes CDN, look at the CSS file header found


Transfer-Encoding: chunked

google has been around for a long time, and it seems that the crawl for CDN only supports http 1.0

While nginx

The gzip_http_version option defaults to 1.1

Add or modify the gzip_http_version parameter in the nginx configuration file, as follows:


gzip_http_version 1.0

After the change, restart nginx

Now it's normal.

Reference: http: / / wiki nginx. org/NginxHttpGzipModule # gzip_http_version

http://forum.nginx.org/read.php?2,2630


Related articles: