Page MenuHomePhabricator

thumbor: set Cache-Control ensuring cacheability on 404 responses
Closed, ResolvedPublic

Description

Thumbor currently sets Cache-Control: no-cache on all error responses. It should instead set Cache-Control: public, max-age=600 on 404 errors.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
ema renamed this task from thumbor: set Cache-Control on 404 responses that ensures cacheability to thumbor: set Cache-Control ensuring cacheability on 404 responses.May 12 2020, 8:25 AM
ema triaged this task as High priority.

Change 595875 had a related patch set uploaded (by Ema; owner: Ema):
[operations/debs/python-thumbor-wikimedia@master] Allow caching 404 errors

https://gerrit.wikimedia.org/r/595875

Change 595875 abandoned by Ema:
Allow caching 404 errors

Reason:
Wrong place!

https://gerrit.wikimedia.org/r/595875

Change 595880 had a related patch set uploaded (by Ema; owner: Ema):
[operations/software/thumbor-plugins@master] Allow caching 404 errors

https://gerrit.wikimedia.org/r/595880

Change 595880 merged by Gilles:
[operations/software/thumbor-plugins@master] Allow caching 404 errors

https://gerrit.wikimedia.org/r/595880

Change 595886 had a related patch set uploaded (by Ema; owner: Ema):
[operations/puppet@production] ATS: cache thumbnail 404s despite of CC

https://gerrit.wikimedia.org/r/595886

Change 595891 had a related patch set uploaded (by Gilles; owner: Gilles):
[operations/debs/python-thumbor-wikimedia@master] Upgrade to 2.7

https://gerrit.wikimedia.org/r/595891

Change 595891 merged by Ema:
[operations/debs/python-thumbor-wikimedia@master] Upgrade to 2.7

https://gerrit.wikimedia.org/r/595891

Mentioned in SAL (#wikimedia-operations) [2020-05-12T13:54:21Z] <ema> thumbor2001: pool thumbor 2.7-1+deb10u1 for prod traffic T252509 T219569 T236240

Mentioned in SAL (#wikimedia-operations) [2020-05-12T14:00:48Z] <ema> thumbor2001: depool due to minor bug in 2.7-1+deb10u1 T252509 T219569 T236240

Mentioned in SAL (#wikimedia-operations) [2020-05-12T14:33:11Z] <ema> thumbor2001: upgrade python-thumbor-wikimedia to 2.8-1+deb10u1 T252509 T219569 T236240

Mentioned in SAL (#wikimedia-operations) [2020-05-12T14:39:57Z] <ema> rolling thumbor upgrade to 2.8-1+deb10u1 T252509 T219569 T236240

Change 595886 abandoned by Ema:
ATS: cache thumbnail 404s despite of CC

Reason:
This isn't needed, thumbor 2.8 (now in prod) does the right thing.

https://gerrit.wikimedia.org/r/595886

Gilles closed this task as Resolved.EditedMay 12 2020, 2:53 PM
Gilles claimed this task.

Ratio of 404s to 200s on Thumbor is now back to its pre-2020-04-30 level.