#stale-while-revalidate header not working

2 messages · Page 1 of 1 (latest)

runic crow
#

I'm sending a Response with a stale-while-revalidate header: https://github.com/daniellwdb/daniellwdb/blob/development/src/pages/api/spotify.ts#L82-L93 which I'm using here: https://github.com/daniellwdb/daniellwdb/blob/development/src/pages/index.astro#L19-L20. I noticed that the request doesn't trigger again however. It might have something to do with the way I'm deploying to Vercel, but I'm not sure: https://github.com/daniellwdb/daniellwdb/blob/development/astro.config.ts#L40-L42. Any idea how I can make the header work?

#

stale-while-revalidate header not working