How do I enable mod_deflate for PHP files?

后端 未结 6 1815
鱼传尺愫
鱼传尺愫 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:48

    It's been a while since I posted this question - I ended up enabling zlib compression via PHP.ini so zlib compresses PHP output while mod_deflate compresses everything else.

    I'm thinking the reason it wasn't working (mod_deflate wasn't compressing PHP output) has to do with PHP running as CGI and not an Apache DSO...

提交回复
热议问题