search

Home  >  Q&A  >  body text

nginx + fastcgi+web.py makes a website, but gzip can only compress static resources?

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?

巴扎黑巴扎黑2800 days ago760

reply all(1)I'll reply

  • 为情所困

    为情所困2017-05-16 17:27:41

    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

    reply
    0
  • Cancelreply