News for hackers. Stuff that matters.
Re:Stealing from Google by mimsee on Thursday October 02, 2025 @02:26PM (#45453445)
If I wanted to achieve the same result, that is to serve assets of others from my own domain, I'd just create a custom endpoint like /api/user-avatar/:userId and an action proxies the actual image from google, maybe keep a cached copy for some time to not have to redownload the image on every request.
Re:Stealing from Google by arcfour on Friday October 03, 2025 @03:01AM (#45459895)
Especially since, if you were doing this on CloudFlare—which you can with OpenNext—it's incredibly simple to work with CloudFlare's caches in Workers. For example: https://developers.cloudflare.com/workers/examples/cache-usi...

Plus there's their Images service which could come in handy to transform them a bit, too, if you wanted.

Re:Stealing from Google by skylurk on Friday October 03, 2025 @04:17AM (#45460384)
This. Only needs a couple lines of nginx config.