首頁 > 問答 > 主體
nginx fastcgi web.py 做網站,gzip 只能壓縮靜態資源? 用web.py回傳的html需要程式碼裡面手動gzip嗎?
为情所困2017-05-16 17:27:41
py回傳產生的html也是可以壓縮的,直接在nginx開啟gzip並指定型別就可以
參考:http://nginx.org/en/docs/http/ngx_http_gzip_module.html#gzip_types