How do I enable mod_deflate for PHP files?

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

    PHP files usually serves text/html content (although you can also generate images and pretty much everything). PHP files are never sent to the client: it gets processed to generate content (text/html or images). You're looking to gzip this content.

提交回复
热议问题