Why give a cached gzip object?

0

Hi

I've added support for brotli enabled servers and already gzip too before times.
and then was push to invalidation ALL contents.

First case, contents fetch with "Accept-Encoding: br, gzip" first then got a response content encoded by "br", and then if I fetch with just gzip I get gzip OK.

Second case, after invalidation, contents fetch first with gzip then got a response gzip content, then request with "Accept-Encoding: br, gzip", Edge has been responding with cached "gzip" content.
https://i.imgur.com/1KTc87n.png

Please investigate to this.

Edited by: hedy on Oct 6, 2020 4:09 PM

hedy
posta 4 anni fa221 visualizzazioni
4 Risposte
0

I also saw this. gzip seems to take precedence in the edge cache. I think it's a bug, and I mentioned it on another thread, but there was no reply. I think this makes Brotli support useless currently.

HMOF
con risposta 4 anni fa
0

well.. I've made sense throught that has been explained "When caching compressed objects is enabled for both compression formats" session in this document to behavior about enabled both type compression.
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-understand-cache-policy-settings

It hope you help

hedy
con risposta 4 anni fa
profile picture
ESPERTO
verificato un mese fa
0

in myself, understood this behavior through docs.

hedy
con risposta 4 anni fa
0

Thanks, yes I agree it makes sense to serve gzip out of the cache rather than to fetch brotli from the origin, which would take probably take longer at all. I think it should still prioritise br if it has both in the cache and I'm not sure it does but that is not so important.

HMOF
con risposta 4 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande