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
已提問 4 年前檢視次數 221 次
4 個答案
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
已回答 4 年前
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
已回答 4 年前
profile picture
專家
已審閱 1 個月前
0

in myself, understood this behavior through docs.

hedy
已回答 4 年前
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
已回答 4 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南