How do I enable mod_deflate for PHP files?

后端 未结 6 1731
鱼传尺愫
鱼传尺愫 2021-01-21 17:17

I have a Liquid Web VPS account, I\'ve made sure that mod_deflate is installed and running/active.

I used to gzip my css and js files via PHP, as well as my PHP files th

6条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-21 17:42

    You can add zlib.output_compression = On to your php.ini configuration file. This will compress the output regardless of mod_deflate.

提交回复
热议问题