Peter Ferguson pfp
Peter Ferguson
@peterferguson.eth
I just donated to Distribute Crowdfund Stickers at Farcon
1 reply
0 recast
5 reactions

nicholas ๐Ÿงจ pfp
nicholas ๐Ÿงจ
@nicholas
@horsefacts.eth is there a way for us to programmatically refresh these embeds (ie each time a donation lands)? cc @osuji.eth
1 reply
0 recast
0 reaction

atlasmoth pfp
atlasmoth
@osuji.eth
Just to add more context, cache-control on the image is set to max-age of 0. Yet the image still takes roughly one hour to refresh
1 reply
0 recast
1 reaction

nicholas ๐Ÿงจ pfp
nicholas ๐Ÿงจ
@nicholas
cc @gabrielayuso.eth who maybe working on this more directly
1 reply
0 recast
0 reaction

horsefacts ๐Ÿš‚ pfp
horsefacts ๐Ÿš‚
@horsefacts.eth
we respect your Cache-Control headers. it looks like you might have Cloudflare between your server and our scraper, I see a one hour max-age in the headers:
1 reply
0 recast
1 reaction

horsefacts ๐Ÿš‚ pfp
horsefacts ๐Ÿš‚
@horsefacts.eth
also you probably don't want to set zero. set max-age as high as tolerable for your application. (for this use case that's probably tens of minutes). setting zero means 1) it will feel slow because users will have to wait for it to load every time they see it in feed and 2) we will request it a lot more and you will pay the server and bandwidth costs to generate and send it with every request https://miniapps.farcaster.xyz/docs/guides/sharing#dynamic-embed-images
1 reply
0 recast
0 reaction