Back to HTTP Headers
Request

HTTP If-Modified-Since Header

Makes the request conditional. The server responds with 304 Not Modified if the resource has not been modified since the specified date.

Purpose

Cache validation using timestamps. Tells the server to only return the full response if it has changed since the given date.

If-Modified-Since: <day-name>, <day> <month> <year> <hour>:<min>:<sec> GMT Example: If-Modified-Since: Mon, 18 May 2026 12:00:00 GMT

Code Examples

See how to use the If-Modified-Since header in different tools and languages.

curl -I -H 'If-Modified-Since: Mon, 18 May 2026 12:00:00 GMT' \
  https://api.example.com/resource
# Response: 304 Not Modified (if unchanged)

Related Headers

Test Your APIs

if-modified-since headerhttp if-modified-sincehttp headers guide