---
title: "Returns a 304 if an If-Modified-Since header or If-None-Match is present. Returns the same as a GET otherwise."
url: "https://seriousmonkeybusiness.shermett.me/apis/httpbinorg-0/versions/cf5887fc-2a8e-440f-bf06-cb4d956f625f/operations/get_cache"
---

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

# Returns a 304 if an If-Modified-Since header or If-None-Match is present. Returns the same as a GET otherwise.

`GET` `/cache`

Operation ID: `get_cache`

## Header parameters

- `If-Modified-Since` (string, optional)
- `If-None-Match` (string, optional)

## Responses

- `200` - Cached response
- `304` - Modified

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: httpbin.org
  version: 0.9.2
servers:
  - url: https://httpbin.org
paths:
  /cache:
    get:
      parameters:
        - in: header
          name: If-Modified-Since
          schema:
            type: string
        - in: header
          name: If-None-Match
          schema:
            type: string
      responses:
        "200":
          description: Cached response
        "304":
          description: Modified
      summary: Returns a 304 if an If-Modified-Since header or If-None-Match is
        present. Returns the same as a GET otherwise.
      tags:
        - Response inspection
      operationId: get_cache
```
