Stalewhilerevalidate
Stale-While-Revalidate is a Cache-Control directive used in HTTP responses to improve performance by allowing caches to serve stale content while refreshing it in the background. When a cached response is no longer fresh, a cache that supports this directive may continue to serve that stale copy for a specified period, even as it asynchronously revalidates the resource with the origin server.
The directive works by adding a time delta in seconds to the cache policy. For example, a
Scope and compatibility vary. The directive is primarily used by shared caches, such as content delivery networks
Usage considerations include the nature of the content and the acceptable staleness. Stale-While-Revalidate is well-suited for