Search code examples
phphttpiisgzipwindows-server

Do I need to enable gzip compression in PHP if it’s already enabled in IIS?


I have PHP installed on a 2019 Windows Server with IIS. If I enable dynamic and static compression via IIS, do I also need to enable it in PHP as well? Or is everything from PHP (and anything else) automatically handled by IIS?


Solution

  • The answer is this:

    If IIS dynamic compression is enabled, it doesn't also need to be enabled in PHP.