simpleinfra icon indicating copy to clipboard operation
simpleinfra copied to clipboard

Cloudfront cache not cleared for database dumps with Accept-Encoding request headers

Open LawnGnome opened this issue 2 years ago • 4 comments

Not trying to bump a closed issue thread, but I'm also not sure if this is related. I'm being served a stale version of the dump when I don't provide a Accept-Encoding header: image

Setting Accept-Encoding to gzip, deflate, br grabs me the new data, but I'm actually not sure if that's just related to how cloudfront is caching the request.

Is there any way around cloudfront's cache or should I just expect to possibly have ~48-hour stale data?

Originally posted by @enricozb in https://github.com/rust-lang/crates.io/issues/6652#issuecomment-1676432689

(opening per @jdno's suggestion)

LawnGnome avatar Aug 16 '23 15:08 LawnGnome

There were some questions about reproduction, and I can still reproduce this today: image

In case it matters (for cache invalidation propagation or something) I'm in Honolulu Hawaii.

enricozb avatar Aug 16 '23 16:08 enricozb

Thanks for clarifying, @enricozb! I might've confused the output from production and staging, I see the same as you when testing again. My bad.

jdno avatar Aug 16 '23 16:08 jdno

@rustbot transfer infra-team

Turbo87 avatar Oct 04 '24 22:10 Turbo87

Failed to transfer issue: error: rustbot does not have the correct permissions to execute TransferIssue

rustbot avatar Oct 04 '24 22:10 rustbot