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?

巴扎黑
巴扎黑

reply all(1)
为情所困

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!