• Resolved donbowman

    (@donbowman)


    I have enabled brotli on nginx hosting my wordpress. It is working well dynamically w/ wpsc.

    However, I would like to reduce the CPU and latency by statically compressing the output of wpsc. E.g. have wpsc create a /cache/url/index.html.br beside the /cache/url/index.html file.

    Is there a hook that I can tie into that is called just post creating a cached item that I could tie into to do the compression?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Unfortunately, there’s no way to hook a different compression scheme into the plugin. Gzip is the only way to compress pages, and it will create gzipped cache pages.

    Thread Starter donbowman

    (@donbowman)

    since the brotli static plugin looks for .br files, it would be sufficient if something could be notified “this file was updated in cache”, and it could then async create a compressed copy beside it.

    e.g. a notification hook would be sufficient for me to write a function in functions.php.

    Plugin Support lastsplash (a11n)

    (@lastsplash)

    Hi @donbowman

    Since this involves new functionality, please create a feature request on our GitHub repository.

    We use GitHub to track requests like this and get them in front of our development team.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Enable brotli static via a hook?’ is closed to new replies.