Content
@
0 reply
4 recasts
4 reactions
Simon ๐
@schmidsi
Hello fellow Frames buidlers, I'm trying to create a Frame that gets the latest punk sale. So far it works but I'm struggling with the "refresh" button. In the docs it's written: "A frame server should add timestamp parameters to image urls to bust caches in responses" but it doesn't work. https://frames.schmidsi.xyz
3 replies
5 recasts
15 reactions
philipplgh
@philipplgh.eth
The ts seems fine.. my gut feeling is you are running into nextjs caching issues something like dynamic = 'force-dynamic' + headers could do the trick https://nextjs.org/docs/app/building-your-application/caching
3 replies
0 recast
0 reaction
Simon ๐
@schmidsi
So you were right, I did not properly skip Vercel/Next.js caching. Now that works, we can check here: frames(dot)schmidsi(dot)xyz. This is the commit that does this for later readers: https://github.com/schmidsi/cryptopunks-frames/commit/f7dbd7cd853d9e9ca9c098caeab46cb469e0d11e But it still does not work ...
1 reply
0 recast
1 reaction
Simon ๐
@schmidsi
I assume it's because I'm re-using the root URL and therefore, there is a cache-hit on the Warpcast server. So I'm trying to create a new URL for the refresh button and do a proper HTTP POST handler.
1 reply
0 recast
1 reaction
philipplgh
@philipplgh.eth
Caching is always super tricky. Happy you got it resolved ๐ฅ
0 reply
0 recast
0 reaction