staleTtl
PRO

Type:
<string> | <number>

Default: undefined
When it's provided, it enables the ability to serve a stale response while a background refresh cache copy is being generated.
microlink https://microlink.io&ttl=1d&staleTtl=1h
The value provided can't be higher than ttl.
A good pattern there is to sets staleTtl=0 to always revalidate in the background, maximizing the cache usage serving the last cache copy generated while the revalidation will refresh it.

staleTtl
PRO

Type:
<string> | <number>

Default: undefined
When it's provided, it enables the ability to serve a stale response while a background refresh cache copy is being generated.
microlink https://microlink.io&ttl=1d&staleTtl=1h
The value provided can't be higher than ttl.
A good pattern there is to sets staleTtl=0 to always revalidate in the background, maximizing the cache usage serving the last cache copy generated while the revalidation will refresh it.