{
  "x402Version": 2,
  "id": 72475,
  "slug": "saylorinnovations-api-dev-cache-control",
  "resource": "https://saylorinnovations.com/api/dev/cache-control",
  "description": "Analyze a Cache-Control header - browser and CDN freshness, no-store and no-cache handling, stale-while-revalidate and conflicting directive warnings",
  "type": "http",
  "serviceName": "Saylor Innovations Data Desk",
  "mimeType": "application/json",
  "resourceType": "API",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "So11111111111111111111111111111111111111112",
      "amount": "95830",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "type": "object",
    "properties": {
      "header": {
        "type": "string",
        "description": "Header as supplied"
      },
      "directives": {
        "type": "object",
        "description": "Parsed directives and values",
        "properties": {
          "public": {
            "description": "public directive present",
            "type": [
              "boolean",
              "null"
            ]
          },
          "max-age": {
            "description": "max-age in seconds",
            "type": [
              "string",
              "null"
            ]
          },
          "s-maxage": {
            "description": "s-maxage in seconds",
            "type": [
              "string",
              "null"
            ]
          },
          "stale-while-revalidate": {
            "description": "stale-while-revalidate in seconds",
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "browser_cacheable": {
        "type": "boolean",
        "description": "Browser cacheable"
      },
      "shared_cache_cacheable": {
        "type": "boolean",
        "description": "Shared cache cacheable"
      },
      "browser_fresh_for": {
        "type": "string",
        "description": "Browser fresh for"
      },
      "shared_cache_fresh_for": {
        "type": "string",
        "description": "Shared cache fresh for"
      },
      "verdict": {
        "type": "string",
        "description": "Overall assessment derived from the listed reasons"
      },
      "warnings": {
        "type": "array",
        "description": "Conflicting or ineffective directives"
      },
      "source": {
        "type": "string",
        "description": "Data source the values come from"
      },
      "immutable": {
        "description": "True when the immutable directive is set",
        "type": [
          "boolean",
          "null"
        ]
      },
      "browser_fresh_for_seconds": {
        "type": [
          "number",
          "null"
        ],
        "description": "Browser fresh for, in seconds"
      },
      "shared_cache_fresh_for_seconds": {
        "type": [
          "number",
          "null"
        ],
        "description": "Shared cache fresh for, in seconds"
      },
      "revalidate_every_time": {
        "type": [
          "boolean",
          "null"
        ],
        "description": "Revalidate every time (UTC unless a time zone is given)"
      },
      "stale_while_revalidate_seconds": {
        "type": [
          "number",
          "null"
        ],
        "description": "Stale while revalidate, in seconds"
      },
      "stale_if_error_seconds": {
        "description": "Stale if error, in seconds"
      }
    },
    "required": [
      "header",
      "verdict",
      "warnings"
    ]
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "GET",
          "queryParams": {
            "header": "public, max-age=3600, s-maxage=86400, stale-while-revalidate=60"
          }
        },
        "output": {
          "type": "json",
          "example": {
            "header": "public, max-age=3600, s-maxage=86400, stale-while-revalidate=60",
            "directives": {
              "public": true,
              "max-age": "3600",
              "s-maxage": "86400",
              "stale-while-revalidate": "60"
            },
            "browser_cacheable": true,
            "shared_cache_cacheable": true,
            "browser_fresh_for_seconds": 3600,
            "browser_fresh_for": "1 hour",
            "shared_cache_fresh_for_seconds": 86400,
            "shared_cache_fresh_for": "1 day",
            "revalidate_every_time": false,
            "immutable": false,
            "stale_while_revalidate_seconds": 60,
            "stale_if_error_seconds": null,
            "verdict": "cacheable by browsers and CDNs",
            "warnings": [],
            "source": "RFC 9111 HTTP Caching and RFC 5861 stale extensions"
          }
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "input": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "http"
              },
              "method": {
                "type": "string",
                "enum": [
                  "GET"
                ]
              },
              "queryParams": {
                "type": "object",
                "properties": {
                  "header": {
                    "type": "string",
                    "description": "Cache-Control header value, e.g. public, max-age=3600"
                  }
                },
                "required": [
                  "header"
                ]
              }
            },
            "required": [
              "type",
              "method"
            ],
            "additionalProperties": false
          },
          "output": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "json"
              },
              "example": {
                "type": "object",
                "properties": {
                  "header": {
                    "type": "string",
                    "description": "Header as supplied"
                  },
                  "directives": {
                    "type": "object",
                    "description": "Parsed directives and values",
                    "properties": {
                      "public": {
                        "description": "public directive present",
                        "type": [
                          "boolean",
                          "null"
                        ]
                      },
                      "max-age": {
                        "description": "max-age in seconds",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "s-maxage": {
                        "description": "s-maxage in seconds",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "stale-while-revalidate": {
                        "description": "stale-while-revalidate in seconds",
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    }
                  },
                  "browser_cacheable": {
                    "type": "boolean",
                    "description": "Browser cacheable"
                  },
                  "shared_cache_cacheable": {
                    "type": "boolean",
                    "description": "Shared cache cacheable"
                  },
                  "browser_fresh_for": {
                    "type": "string",
                    "description": "Browser fresh for"
                  },
                  "shared_cache_fresh_for": {
                    "type": "string",
                    "description": "Shared cache fresh for"
                  },
                  "verdict": {
                    "type": "string",
                    "description": "Overall assessment derived from the listed reasons"
                  },
                  "warnings": {
                    "type": "array",
                    "description": "Conflicting or ineffective directives"
                  },
                  "source": {
                    "type": "string",
                    "description": "Data source the values come from"
                  },
                  "immutable": {
                    "description": "True when the immutable directive is set",
                    "type": [
                      "boolean",
                      "null"
                    ]
                  },
                  "browser_fresh_for_seconds": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Browser fresh for, in seconds"
                  },
                  "shared_cache_fresh_for_seconds": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Shared cache fresh for, in seconds"
                  },
                  "revalidate_every_time": {
                    "type": [
                      "boolean",
                      "null"
                    ],
                    "description": "Revalidate every time (UTC unless a time zone is given)"
                  },
                  "stale_while_revalidate_seconds": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Stale while revalidate, in seconds"
                  },
                  "stale_if_error_seconds": {
                    "description": "Stale if error, in seconds"
                  }
                },
                "required": [
                  "header",
                  "verdict",
                  "warnings"
                ]
              }
            },
            "required": [
              "type"
            ]
          }
        },
        "required": [
          "input"
        ]
      }
    }
  },
  "tags": [
    "what does this cache-control",
    "how long will a cdn cache this",
    "validate cache control",
    "max-age vs s-maxage explained",
    "is no-store set"
  ],
  "sourceHost": "saylorinnovations.com",
  "lastUpdated": "2026-10-26T22:14:01.951Z",
  "quality": {},
  "metadata": {
    "serviceName": "Saylor Innovations Data Desk",
    "method": "GET",
    "mimeType": "application/json",
    "inputSchema": {
      "type": "object",
      "properties": {
        "header": {
          "type": "string",
          "description": "Cache-Control header value, e.g. public, max-age=3600"
        }
      },
      "required": [
        "header"
      ]
    },
    "exampleResponse": {
      "header": "public, max-age=3600, s-maxage=86400, stale-while-revalidate=60",
      "directives": {
        "public": true,
        "max-age": "3600",
        "s-maxage": "86400",
        "stale-while-revalidate": "60"
      },
      "browser_cacheable": true,
      "shared_cache_cacheable": true,
      "browser_fresh_for_seconds": 3600,
      "browser_fresh_for": "1 hour",
      "shared_cache_fresh_for_seconds": 86400,
      "shared_cache_fresh_for": "1 day",
      "revalidate_every_time": false,
      "immutable": false,
      "stale_while_revalidate_seconds": 60,
      "stale_if_error_seconds": null,
      "verdict": "cacheable by browsers and CDNs",
      "warnings": [],
      "source": "RFC 9111 HTTP Caching and RFC 5861 stale extensions"
    },
    "parameterLocation": "query",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "type": "http",
            "method": "GET",
            "queryParams": {
              "header": "public, max-age=3600, s-maxage=86400, stale-while-revalidate=60"
            }
          },
          "output": {
            "type": "json",
            "example": {
              "header": "public, max-age=3600, s-maxage=86400, stale-while-revalidate=60",
              "directives": {
                "public": true,
                "max-age": "3600",
                "s-maxage": "86400",
                "stale-while-revalidate": "60"
              },
              "browser_cacheable": true,
              "shared_cache_cacheable": true,
              "browser_fresh_for_seconds": 3600,
              "browser_fresh_for": "1 hour",
              "shared_cache_fresh_for_seconds": 86400,
              "shared_cache_fresh_for": "1 day",
              "revalidate_every_time": false,
              "immutable": false,
              "stale_while_revalidate_seconds": 60,
              "stale_if_error_seconds": null,
              "verdict": "cacheable by browsers and CDNs",
              "warnings": [],
              "source": "RFC 9111 HTTP Caching and RFC 5861 stale extensions"
            }
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "type": "object",
          "properties": {
            "input": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "http"
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "GET"
                  ]
                },
                "queryParams": {
                  "type": "object",
                  "properties": {
                    "header": {
                      "type": "string",
                      "description": "Cache-Control header value, e.g. public, max-age=3600"
                    }
                  },
                  "required": [
                    "header"
                  ]
                }
              },
              "required": [
                "type",
                "method"
              ],
              "additionalProperties": false
            },
            "output": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "json"
                },
                "example": {
                  "type": "object",
                  "properties": {
                    "header": {
                      "type": "string",
                      "description": "Header as supplied"
                    },
                    "directives": {
                      "type": "object",
                      "description": "Parsed directives and values",
                      "properties": {
                        "public": {
                          "description": "public directive present",
                          "type": [
                            "boolean",
                            "null"
                          ]
                        },
                        "max-age": {
                          "description": "max-age in seconds",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "s-maxage": {
                          "description": "s-maxage in seconds",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "stale-while-revalidate": {
                          "description": "stale-while-revalidate in seconds",
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "browser_cacheable": {
                      "type": "boolean",
                      "description": "Browser cacheable"
                    },
                    "shared_cache_cacheable": {
                      "type": "boolean",
                      "description": "Shared cache cacheable"
                    },
                    "browser_fresh_for": {
                      "type": "string",
                      "description": "Browser fresh for"
                    },
                    "shared_cache_fresh_for": {
                      "type": "string",
                      "description": "Shared cache fresh for"
                    },
                    "verdict": {
                      "type": "string",
                      "description": "Overall assessment derived from the listed reasons"
                    },
                    "warnings": {
                      "type": "array",
                      "description": "Conflicting or ineffective directives"
                    },
                    "source": {
                      "type": "string",
                      "description": "Data source the values come from"
                    },
                    "immutable": {
                      "description": "True when the immutable directive is set",
                      "type": [
                        "boolean",
                        "null"
                      ]
                    },
                    "browser_fresh_for_seconds": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Browser fresh for, in seconds"
                    },
                    "shared_cache_fresh_for_seconds": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Shared cache fresh for, in seconds"
                    },
                    "revalidate_every_time": {
                      "type": [
                        "boolean",
                        "null"
                      ],
                      "description": "Revalidate every time (UTC unless a time zone is given)"
                    },
                    "stale_while_revalidate_seconds": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Stale while revalidate, in seconds"
                    },
                    "stale_if_error_seconds": {
                      "description": "Stale if error, in seconds"
                    }
                  },
                  "required": [
                    "header",
                    "verdict",
                    "warnings"
                  ]
                }
              },
              "required": [
                "type"
              ]
            }
          },
          "required": [
            "input"
          ]
        }
      }
    },
    "examples": [
      {
        "label": "Unpaid discovery call",
        "method": "GET",
        "url": "https://saylorinnovations.com/api/dev/cache-control?header=public%2C%20max-age%3D3600%2C%20s-maxage%3D86400%2C%20stale-while-revalidate%3D60",
        "expectedStatus": 402
      }
    ],
    "cacheTtlSeconds": 0,
    "capabilities": [],
    "noAccountRequired": true,
    "noApiKeyRequired": true,
    "sideEffects": "Paid calls settle the advertised payment; see the provider contract for execution behavior.",
    "payment": {
      "protocol": "x402",
      "settlement": "direct-to-provider"
    },
    "provider": {
      "name": "Saylor Innovations",
      "host": "saylorinnovations.com",
      "manifestUrl": "https://saylorinnovations.com/.well-known/x402.json"
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": true,
  "featured": false,
  "provider": {
    "host": "saylorinnovations.com",
    "manifest_name": "Saylor Innovations Knowledge Base",
    "source": "submitted",
    "source_manifest_url": "https://saylorinnovations.com/.well-known/x402.json",
    "submitted_at": "2026-10-26T05:52:02.113Z"
  },
  "exampleResponse": {
    "header": "string",
    "directives": {
      "public": true,
      "max-age": "string",
      "s-maxage": "string",
      "stale-while-revalidate": "string"
    },
    "browser_cacheable": true,
    "shared_cache_cacheable": true,
    "browser_fresh_for": "string",
    "shared_cache_fresh_for": "string",
    "verdict": "string",
    "warnings": [
      "value"
    ],
    "source": "string",
    "immutable": true,
    "browser_fresh_for_seconds": 0,
    "shared_cache_fresh_for_seconds": 0,
    "revalidate_every_time": true,
    "stale_while_revalidate_seconds": 0,
    "stale_if_error_seconds": null
  }
}