While theorizing about T425216 , we noticed and wondered why we don't emit Cache-Control at all (towards end-clients) on upload.wm.o image fetches. We do emit ETag, Last-Modified, Date, and Age, and it's reasonable to assume (based on standards recommendations and general Internet discussions of the topic) that browsers will probably generally apply some kind of limited, heuristic caching based on those values, given no explicit C-C. Some sources expect something like 10% of the diff between Date and Last-Modified.
We should try to figure out a few things about this to better our own understanding of the linked bug and related things:
- What behaviors do current majority browsers exhibit in this scenario wrt image caching?
- Have those behaviors evolved in recent years?
- What was "our" intent whenever whomever here last evaluated this situation, probably many years ago?
- What do we want to do now? (probably, at least explicitly define a C-C header that unambiguously causes some intended behavior)