← Back to Home

Cache Control

/cache
Returns cache control headers.

Examples

curl
curl -I https://tcpdata.com/cache
JavaScript (fetch)
fetch('https://tcpdata.com/cache')
  .then(res => {
    console.log(res.headers.get('Cache-Control'));
    return res.json();
  })
  .then(data => console.log(data));
Python (requests)
import requests

response = requests.get('https://tcpdata.com/cache')
print(response.headers.get('Cache-Control'))
print(response.json())