/v1/parse
Parse a Cache-Control header
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/cachecontrol-api/v1/parse" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cachecontrol-api/v1/parse", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cachecontrol-api/v1/parse");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/cachecontrol-api/v1/parse",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"count": 3,
"max_age": 3600,
"cacheable": true,
"directives": {
"public": true,
"max_age": 3600,
"stale_while_revalidate": 60
},
"visibility": "public",
"revalidate_each_time": false
},
"meta": {
"timestamp": "2026-06-03T09:25:03.072Z",
"request_id": "9c7c4ec1-dcd2-4cd1-8948-b24c811bd449"
},
"status": "ok",
"message": "Parse a Cache-Control header",
"success": true
}