ttl
PRO

Type: number
Default: 3600000
It establishes the maximum quantity of time a resource served from cache layer is considered as valid.
microlink-api https://kikobeats.com&ttl=14400000
The value provided need to be at least 1 hour and not higher than 24 hours, specified in milliseconds.
The idea behind exposing this API parameter is to optimize better how much time the target URL can be cached:
  • If you are targetting an URL that changes very often and response time is not critical for you, a small value will work better.
  • If you are targetting an URL that doesn't change too much or you want to maximize cache hits, getting faster response time, a higher value works better.
The value provided will reflected as x-cache-ttl as part of the response headers
curl -I -s -X GET https://microlink.io?url=https://www.twitter.com/microlinkhq | grep -i "x-cache-ttl"

ttl
PRO

Type: number
Default: 3600000
It establishes the maximum quantity of time a resource served from cache layer is considered as valid.
microlink-api https://kikobeats.com&ttl=14400000
The value provided need to be at least 1 hour and not higher than 24 hours, specified in milliseconds.
The idea behind exposing this API parameter is to optimize better how much time the target URL can be cached:
  • If you are targetting an URL that changes very often and response time is not critical for you, a small value will work better.
  • If you are targetting an URL that doesn't change too much or you want to maximize cache hits, getting faster response time, a higher value works better.
The value provided will reflected as x-cache-ttl as part of the response headers
curl -I -s -X GET https://microlink.io?url=https://www.twitter.com/microlinkhq | grep -i "x-cache-ttl"