Post

@juliancataldo.com hey! I remember seeing your post about Cloudflare + Nginx (proxy_cache_background_update), how do you setup this? I have an Astro website with Node + Varnish Cache as a proxy to support SWR via Cache-Control. This is very interesting since Cloudflare does not support SWR yet.

0 reposts0 likes

IIRC think the header logic is missing (for finer control). Nginx will just send the cached response and recalculate it for next requests, but without spamming it (multiple requests at once get fused into one, no unneeded work)