News for hackers. Stuff that matters.
Re:Issues with Cloudflare Images by Aeolun on Tuesday December 07, 2021 @07:36PM (#29480036)
> Best practice when it comes to images on the web is to use a fixed number of sizes.

What is the idea behind this? It doesn’t seem to add anything other than to leverage caching a bit better.

Re:Issues with Cloudflare Images by ryan_lane on Tuesday December 07, 2021 @09:22PM (#29480610)
It's a common DoS vector. If you limit the allowed sizes, you can predict your min/max for compute, storage, cache, networking, etc. If you allow arbitrary resizing, the client can iterate indefinitely, doing things like "give me 1x1, now 1x2, now 2x2", which will tie up your compute resources, eat up storage, push legitimate data out of your cache, etc.