Stale While Revalidate (SWR) is a strategy to first return the data from the cache, then send the fetch request, and finally come up with the up-to-date data.
PHP
A cookieless, cache-friendly image proxy in Laravel (inspired by Cloudflare)
Transforming and serving images from Laravel in a cache-friendly way. Read more