nginx + fastcgi+web.py makes a website, but gzip can only compress static resources?
巴扎黑2017-05-16 17:25:41
0
1
580
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?
py返回生成的html也是可以压缩的,直接在nginx开启gzip并指定类型就可以
参考:http://nginx.org/en/docs/http/ngx_http_gzip_module.html#gzip_types