---
title: "Sets a Cache-Control header for n seconds."
url: "https://seriousmonkeybusiness.shermett.me/apis/httpbinorg-0/versions/cf5887fc-2a8e-440f-bf06-cb4d956f625f/operations/get_cache_value"
---

> Full API specification: https://seriousmonkeybusiness.shermett.me/apis/httpbinorg-0/versions/cf5887fc-2a8e-440f-bf06-cb4d956f625f.md

# Sets a Cache-Control header for n seconds.

`GET` `/cache/{value}`

Operation ID: `get_cache_value`

## Path parameters

- `value` (integer, required)

## Responses

- `200` - Cache control set

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: httpbin.org
  version: 0.9.2
servers:
  - url: https://httpbin.org
paths:
  /cache/{value}:
    get:
      parameters:
        - in: path
          name: value
          required: true
          schema:
            type: integer
      responses:
        "200":
          description: Cache control set
      summary: Sets a Cache-Control header for n seconds.
      tags:
        - Response inspection
      operationId: get_cache_value
```
