keycdn / cache-enabler

A lightweight caching plugin for WordPress that makes your website faster by generating static HTML files.
https://wordpress.org/plugins/cache-enabler/
123 stars 46 forks source link

Feature proposal: Brotli support #143

Closed nlemoine closed 3 years ago

nlemoine commented 3 years ago

Hi @coreykn!

I've been recently implementing brotli compression for the assets part (css, js, svg, etc.) of the projects I'm working on and I thought It would be great to have Brotli for static cached page too. The performance gain is worth it.

You'll find everything here: https://github.com/nlemoine/cache-enabler/tree/feature-brotli

I think compression settings could be removed. The serving cache methods already does the http_accept_encoding checks so no Brotlied or Gzipped page will be served to browsers that don't support them.

Let me know what you think.

coreykn commented 3 years ago

1

nlemoine commented 3 years ago

Whoops, sorry, I saw that issue earlier, just forgot about it.

Are you still interested in a PR?

coreykn commented 3 years ago

No problem. We are definitely interested. Let's continue this discussion in the issue mentioned above instead.