textpattern / server-config

Configuration files for Textpattern project servers.
The Unlicense
2 stars 2 forks source link

Brotli #18

Closed petecooper closed 6 months ago

petecooper commented 6 years ago

NTS

petecooper commented 6 years ago

Module now installed, further work required for per-file Brotli sorcery.

philwareham commented 3 years ago

@petecooper just noticed that Brotli doesn't appear to be turned on for textpattern.com - anything we can do to rectify that?

petecooper commented 3 years ago

@philwareham Yep, it's on my (general server build) task list - need to A/B test differences in server load to make sure QoS is maintained.

philwareham commented 3 years ago

Cool, thanks Pete. Will look on in interest - no hurry, just thought it might of slipped through the net.

petecooper commented 3 years ago

Give me a week or so to wrap up the migration stuff and sanity checks, then we can take a look at this. We'll start with static compression, given the nature of our content, and we can look at dynamic when we know how that flies in real world terms.

petecooper commented 3 years ago

Brotli static now enabled on .com as a trial run.

Actually, scrap that. More work needed. Need to figure out best approach. Defer for now.

philwareham commented 3 years ago

Actually, scrap that. More work needed. Need to figure out best approach. Defer for now.

OK, no worries. Any chance you can share the Brotli module's config file for my own reference, or put it in the repo as a version controlled file? I'd like to see how it interacts with GZIP and what file types it targets.

I guess we can't simply use Cloudflare's Brotli compression as our origin server already GZIPs certain files - unless we disable our GZIP? https://support.cloudflare.com/hc/en-us/articles/200168396

petecooper commented 3 years ago

As I understand it, and I've not had time (or inclination, honestly) to investigate too deeply yet:

Reading up on Brotli, I will need to re-engineer the infra and Nginx setup to differentiate between all of the above…and then there's Cloudflare as an added gotcha…I will need to unlearn deploying Gzip as standard (which is engrained), and then rebuild the scaffold at a per-site level again. All doable, obviously, just not realistically in my near future with other work and life stuff causing complications.

Gut feeling says re-park this for now and I'll take a look when the days are a bit shorter. I do want to get my head around it, I just need a good on-ramp to get into the right mindset, and I'm out of practice after some months of offline chaos (which is bleeding into my online life in ways I'd rather it didn't). I'm in the process of putting my thing down, flipping it and reversing it to come at tasks from a different angle…it's just taking a while!

(Thanks for coming to my latest TED talk.)