• Resolved ecronik

    (@ecronik)


    Hi Marko,

    I hope you had a great week so far! I have a question regarding Brotli compression via W3TC. On my server, there is, unfortunately, no possibility to install the respective PHP extension, but support told me that Brotli is installed server side (Apache) and that the module mod_brotli is running. So the option under W3TC > Browser Cache is greyed out for me, but I have gzip activated there.

    Is there a way to include brotli in my .htaccess now alongside the native gzip functionality via W3TC? If so and when doing it manually, will gzip then still be automatically used if it’s an older browser and vice versa?

    Thanks a bunch and best regards,
    eC

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

    (@vmarko)

    Hello @ecronik

    Thank you for reaching out and I am happy to answer.
    W3 Total Cache check for the PHP brotli extension if it’s installed. And I guess you already know this.
    Let me check more possibilities for a workaround for a use case like yours, and see if there is a chance of adding those manually.
    This may be tricky since the rules within the W3TC rules in apache are reflecting the configuration.
    I’ll get back top you with more information on this.

    Thanks!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hey @ecronik

    Thank you for your patience.
    Our plugin checks for the PHP function “brotli_compress”, which is in the PECL module.
    If your server uses PHP-FPM and can use .user.ini files or similar, then it may be possible to add a compiled module file and load it in an ini file.
    Or you can simply use this manually with custom rules outside of W3TC.

    TI hope this helps!

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Manual Brotli?’ is closed to new replies.