adrienne
@adrienne
2 issues I need to work on: - image compression and/or caching, running up my free tier fast data transfer usage too fast - investigate why the cache refresh mechanism I put in place (to refresh image when we put out a new episode) isn’t actually working But also leaving for a road trip tonight so this may have to wait
3 replies
0 recast
5 reactions
Samuel ツ
@samuellhuber.eth
What cache headers are you setting? Do you serve the image manually? Image compression / caching you could post the image to say cloudflare or some where else and just return that URL instead of an image depending on your setup
1 reply
0 recast
1 reaction
adrienne
@adrienne
regarding image compression i think the vercel/og library for generating dynamic images is causing the larger size Seems like it only ouputs to png and doesnt support webp or avif. I was creating a dynamic image using a YT thumbnail that was about 40kb and our gmfarcaster logo that was about 60kb and the resulting image was 1 MB. Ended up removing the background image and got it down to around 650kb. Good improvement for now. Just updated cache headers to mimic browser will monitor for next few days and see how it goes
1 reply
0 recast
1 reaction