@yojimbo oh ofc, having it only be loaded when the user needs to render it is far better! but to avoid the mess that is trusting the client’s upload, why not have the user ask the server for the cached media, and from then the server can handle making the request to the source url?
a cache hit:
|--cache please->|
|<-cached media--|
a cache miss (with client fetching media, your solution, 3 requests)
| |--cache please->|
| |<-no------------|
|<-media please---|
|----------media->|
| |----cache this->|
| |<-ok------------|
a cache miss (with server fetching media, this ones solution, 2 requests)
|--cache please->| |
| |---media please->|
| |<-media----------|
|<-media---------| |
=> More informations about this toot | View the thread | More toots from 0x57e11a@void.lgbt
=> View yojimbo@hackers.town profile
text/gemini
This content has been proxied by September (ba2dc).