<string> | <number>

It enables serve a stale response while a background refresh cache copy is being generated over the target url.
  • CLI
  • JavaScript
  • Shell
  • Python
  • Ruby
microlink ''
The value provided can't be higher than ttl.
A good pattern there is to sets staleTtl=0 to always revalidate in the background under expiration, maximizing the cache usage serving the last cache copy generated while the revalidation will refresh it.