CacheControl.stale_while_revalidate()

Allow reusing a stale response for seconds while revalidation happens in the background.

Usage

Source

CacheControl.stale_while_revalidate(seconds)