nginx + fastcgi+web.py makes a website, but gzip can only compress static resources?
巴扎黑2017-05-16 17:25:41
0
1
673
nginx fastcgi web.py When building a website, gzip can only compress static resources?
Does the html returned by web.py need to be manually gziped in the code?
The HTML returned by py can also be compressed. Just enable gzip directly in nginx and specify the type
Reference: http://nginx.org/en/docs/http/ngx_http_gzip_module.html#gzip_types