News for hackers. Stuff that matters.
Re:How to waste bandwidth, battery power, and annoy sysadmins by fnord123 on Saturday June 29, 2024 @04:24AM (#40828670)
404s don't get cached. At least I don't configure anything to cache them.
Re:How to waste bandwidth, battery power, and annoy sysadmins by JimDabell on Saturday June 29, 2024 @08:05AM (#40829794)
> 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

Re:How to waste bandwidth, battery power, and annoy sysadmins by theginger on Saturday June 29, 2024 @05:21AM (#40828927)
This 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.
Re:How to waste bandwidth, battery power, and annoy sysadmins by yosefk on Saturday June 29, 2024 @04:28AM (#40828692)
404s have got to be very cheap to serve
Re:How to waste bandwidth, battery power, and annoy sysadmins by chiph on Saturday June 29, 2024 @08:01AM (#40829778)
Not 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.

Re:How to waste bandwidth, battery power, and annoy sysadmins by fnord123 on Saturday June 29, 2024 @02:43PM (#40832595)
If the CDN returns a 404 or the origin server, then your satellite phone is still waiting.
Re:How to waste bandwidth, battery power, and annoy sysadmins by bandrami on Saturday June 29, 2024 @06:49AM (#40829293)
But they aren't always!