Similar to rEPHN51389460dd05: Set expiry header to minimize leakage/T320835: Minimize file leakage by expiring objects when using swift file-backend. Per the commit summary there, T211661: Automatically clean up unused thumbnails in Swift hasn't (fully?) happened yet.
Description
Details
| Subject | Author | Repo | Branch | Lines +/- | |
|---|---|---|---|---|---|
| Add X-Delete-At header to Score files being stored | TheDJ | mediawiki/extensions/Score | master | +35 -7 |
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Open | None | T257093 Add cache key information to metadata json | |||
| Open | None | T427866 Add X-Delete-At header to Score files being stored |
Event Timeline
The object expirer does run in the ms swift cluster, so if you start setting the relevant expire header on objects, that should take effect. NB if you do this it'll do nothing about even-older objects.
Change #1321664 had a related patch set uploaded (by TheDJ; author: TheDJ):
[mediawiki/extensions/Score@master] Add X-Delete-At header to Score files being stored
The patch i made should do this for all files. .ly .midi .mp3 .svg and .png that score creates and stores.
I've made the default 365 days, but it's up for discussion what that value should be (and its configurable)
@Kelson how does Kiwix handle Score related files ? Do you simply download whatever is linked from the HTML content at the time the bundle is created ? Just making sure that I don't totally break something if we delete an old reference.