Development
Analyze Cache-Control directives, calculate browser/shared-cache TTL and stale budgets, detect directive conflicts, and compare static behavior notes for generic HTTP, Fastly, Cloudflare, and Akamai.
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/http-cache-control-cdn-edge-ttl-budget-optimizer' \
-H 'Content-Type: application/json' \
-d '{"cacheControl":"public, max-age=60, s-maxage=600, stale-while-revalidate=30","cdn":"cloudflare","browserTtlBudget":120,"edgeTtlBudget":900,"staleBudget":60}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/http-cache-control-cdn-edge-ttl-budget-optimizer| Name | Type | Required | Description |
|---|---|---|---|
| cacheControl | textarea | Yes | — |
| cdn | select | No | — |
| browserTtlBudget | number | No | — |
| edgeTtlBudget | number | No | — |
| staleBudget | number | No | — |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-http-cache-control-cdn-edge-ttl-budget-optimizer": {
"name": "http-cache-control-cdn-edge-ttl-budget-optimizer",
"description": "Analyze Cache-Control directives, calculate browser/shared-cache TTL and stale budgets, detect directive conflicts, and compare static behavior notes for generic HTTP, Fastly, Cloudflare, and Akamai.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=http-cache-control-cdn-edge-ttl-budget-optimizer",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "http-cache-control-cdn-edge-ttl-budget-optimizer",
"arguments": {
"cacheControl": "public, max-age=60, s-maxage=600, stale-while-revalidate=30",
"cdn": "cloudflare",
"browserTtlBudget": 120,
"edgeTtlBudget": 900,
"staleBudget": 60
}
}
}HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Questions or issues? Contact [email protected]