Support for stale-while-revalidate

As of Jan 10th, our support ticket said “This is still something that the Product Team is still working on, but I do not have an ETA on the release.” Our success team is going to let us know when it becomes available. Definitely a bummer that this does not work.

1 Like

I see it in the cache rules section now.

https://developers.cloudflare.com/cache/how-to/cache-rules/settings/#serve-stale-content-while-revalidating

Have you tried this yet?

Any news on this? We have really long SWR headers but are only seeing a tiny fraction of traffic actually being revalidated in the background.

1 Like

this was asked on Discord, if it was still on track for the end of Q1 and they said that it’s actively being developed as we speak, but it likely won’t be done for the end of Q1.

Question: Discord

Answer: 2min 40sec in: Discord

1 Like

Just asked this in this months discord call. There was no update and “definitely not on track for early Q2”.

1 Like

Coming soon: asynchronous revalidation with stale-while-revalidate… and we will be bringing this to you in the second half of 2024.

There is a link at the bottom of the blog post to a google form to signup for the beta.

1 Like

Wish I had found that blog post before wasting a day troubleshooting why its not working.
The docs really should be updated to say its not supported yet, the fact they have this section implies its a working feature Revalidation and request collapsing · Cloudflare Cache (CDN) docs

4 Likes

just the same… they made me crazy testing, as their documentation just say it is already supported, for months and months!!!

is there a page or another conversation that one can monitor to see if and when stale-if-error and stale-while-revalidate are/will be properly implemented?

I was on a call about 2 weeks ago and they said it’s still set for Q3. So hopefully we get true SWR soon.

5 Likes

Glad I came across this issue early enough. I was thinking of using cloudflare as the CDN in my startup but now I will probably go with some other provider.

3 Likes

Any update on when Cloudflare released the SWR? According to this blog: Browser Rendering API GA, rolling out Cloudflare Snippets, SWR, and bringing Workers for Platforms to all users
“…we will be bringing this to you in the second half of 2024.”
2024 almost ends.

3 Likes

Could Cloudflare team tell if it still seriously implement SWR? Alternatively, Cloudflare team could just announce that it would abandon any plan for implementing SWR. So we could move on with understanding that Cloudflare SWR is only working for concurrent request as it explained on Revalidation and request collapsing · Cloudflare Cache (CDN) docs

it is a petty Cloudflare tell us it is working for almost 2 years without success, on a feature which is already present in any decent proxy-cache, as it is a must. We are waiting for it because it is so much useful.

1 Like