« Web, HTML, Tech Forum

help me out

Posted by Andrew

posted
updated

Forum: Web, HTML, Tech

I made a server that returns a stylized image of the last song you listened to on last.fm, however, it returns a different image with the same URL.
For this reason, i made the servers response have a Cache-Control: no-store header. However, after putting this on my profile, it wouldn't change when you refreshed the page. Instead, it would use the last cached version. I was like, that's weird, and then I found out that spacehey passes every image through their own CDN.
If anyone here is more familiar with how spacehey works, help me out, please 🙏🙏 all i want it to do is not cache the image

Feel free to visit my profile, and http://clt.sl4shed.xyz/.


Report Topic

1 Reply

Reply by Bishi

posted

Im pretty sure spacehey grabs a version of the image and stores it on it's cdn servers, and i doubt it refreshes it's cache; i draw this conclusion from the fact that all spacehey images, once inserted via html or whatever, get their link changed to https://external-media.spacehey.net/media/*, for example: https://external-media.spacehey.net/media/stD96BLFIQ3dN59CKTYteNuivUoMAclgZksxpyfK748E=/https://i.postimg.cc/W34Mp90F/adasd.png

not really sure how you can circumvent that though...


Permalink Report Reply