3 ms·
404s don't get cached. At least I don't configure anything to cache them.
by fnord123 2y ago
404s don't get cached. At least I don't configure anything to cache them.
- yosefk 2y ago404s have got to be very cheap to serve
- bandrami 2y agoBut they aren't always!
- chiph 2y agoNot when you're on a metered connection, or on a high latency one. Don't make your customers pay for your sloppy habits is a good policy to have.
- fnord123 2y agoIf the CDN returns a 404 or the origin server, then your satellite phone is still waiting.
- theginger 2y agoThis why in a lot of contexts it would be good to at least be micro catching them. If they were cached for 5 seconds it would have covered all subsequent requests.
- JimDabell 2y ago> A 404 response is cacheable by default; i.e., unless otherwise indicated by the method definition or explicit cache controls — https://datatracker.ietf.org/doc/html/rfc7231#section-6.5.4 https://datatracker.ietf.org/doc/html/rfc7231#section-6.5.4