Updated on 2025-09-24 GMT+08:00

SWR

stale-while-revalidate (SWR) is an attribute value of the HTTP Cache-Control response header. It defines an HTTP cache policy that allows clients to use stale cache while revalidating the cache with the origin server, reducing network latency and server load.

Description

Enable SWR if you have set Cache-Control: stale-while-revalidate=*** (specific duration) on your origin server. This allows clients to access stale resources cached on CDN points of presence (PoPs) until the SWR duration ends. At the same time, CDN pulls and caches the latest resources from the origin server to serve future requests.