Skip to main content

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

GET 

https://httpbin.org/cache

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

Request

Header Parameters

    If-Modified-Since string
    If-None-Match string

Responses

Cached response.

Schema
    objectobject
import http.client

conn = http.client.HTTPSConnection("httpbin.org")
payload = ''
headers = {
'Accept': 'application/json'
}
conn.request("GET", "/cache", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
Request Collapse all
Base URL
https://httpbin.org
Parameters
— header
— header
ResponseClear

Click the Send API Request button above and see the response here!