Rack::CacheWhileRevalidate
Idea
Often, for caching, you don’t care if the data is a little stale, you’re content to serve the stale data and silently revalidate the cache in the background.
Usage
In your builder (or rackup or whatever), make sure you first off: use Rack::Capabilities
Then, wherever your Rack::Cache
usage occurs, put use Rack::CacheWhileRevalidate
directly before it (NB). That’s it!