• Resolved aaronsmithisd

    (@aaronsmithisd)


    After upgrading PHP from 7.2.5 to 7.4.6 on our web servers, we encounter “Content Encoding Error” when accessing sites on our WordPress system. We discovered that disabling HTTP (gzip) Compression in Browser Cache settings resolves the issue. Is there a known issue with gzip compression in PHP 7.4 with W3TC?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @aaronsmithisd

    Thank you for reaching out.
    No, there are no issues with gzip compression in PHP 7.4 with W3TC.
    Most likely you have a double compression, meaning the gzip is enabled on the server or Zlib compression, you with some other plugin.
    I’ve checked this on a couple of websites on PHP 7.4 + and there are no issues whatsoever with the gzip compression.
    Thanks!

    Hi, yes, I am facing this weird issue.

    When the page is missed, the whole webpage fails to load. However, the page cache is generated and if you reload the page, you can display the webpage from the cache correctly. I am still looking what exactly causing this.

    I am happy to provide more information if you need. As for now, I will just keep trying to identify this issue.

    BTW, like the OP posted, I am having no such issue on 7.4.x version before (I can’t remember the previous version) but when I upgrade my PHP to 7.4.19 (the latest version on Amazon Linux 2), I am getting this isuse.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP 7.4 Content Encoding Error with gzip compression enabled’ is closed to new replies.