---
title: "Returns 200 unless an If-Modified-Since or If-None-Match header is provided, when it returns a 304."
url: "https://sbx.developer-internal.sanofi.com/apis/httpbin-1/versions/da3754ed-f573-4cf9-a100-7688d77483f4/paths/cache/get"
---

> Full API specification: https://sbx.developer-internal.sanofi.com/apis/httpbin-1/versions/da3754ed-f573-4cf9-a100-7688d77483f4.md

# Returns 200 unless an If-Modified-Since or If-None-Match header is provided, when it returns a 304.

`GET` `/cache`

## Header parameters

- `If-Modified-Since` (string, optional) - For testing purposes this header accepts any value. (???) See also https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Modified-Since
- `If-None-Match` (string, optional) - For testing purposes this header accepts any value. (???) See also https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match

## Responses

- `200` - Neigher If-Modified-Since nor If-None-Match header is provided
- `304` - If-Modified-Since or If-None-Match header is provided

## OpenAPI definition

```yaml
openapi: 3.0.1
info:
  title: httpbin
  version: 1.0-oas3
servers:
  - url: https://httpbin.org
  - url: http://httpbin.apim.eu/
  - url: https://eu.httpbin.org
  - url: http://eu.httpbin.org
  - url: http://localhost:8000/test
paths:
  /cache:
    get:
      summary: Returns 200 unless an If-Modified-Since or If-None-Match header is
        provided, when it returns a 304.
      parameters:
        - in: header
          name: If-Modified-Since
          required: false
          description: |
            For testing purposes this header accepts any value. (???) See also https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Modified-Since
          schema:
            type: string
            example: Wed, 21 Oct 2015 07:28:00 GMT
        - in: header
          name: If-None-Match
          required: false
          description: |
            For testing purposes this header accepts any value. (???) See also https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match
          schema:
            type: string
          examples:
            etag:
              value: '"bfc13a64729c4290ef5b2c2730249c88ca92d82d"'
            etags:
              value: W/"67ab43", "54ed21", "7892dd"
            asterisk:
              value: "*"
      responses:
        "200":
          description: Neigher If-Modified-Since nor If-None-Match header is provided
        "304":
          description: If-Modified-Since or If-None-Match header is provided
```
