If-Unmodified-Since Header Explained

What the HTTP If-Unmodified-Since header does and when it's used.

Published October 17, 2026

If-Unmodified-Since makes a request proceed only if the resource has not changed since the given date, otherwise 412.

How it works

It is the date-based version of If-Match.

The If-Unmodified-Since header is part of the HTTP message and is case-insensitive in name.

In a real exchange

curl -i https://example.com/
If-Unmodified-Since: Wed, 21 Oct 2026 07:28:00 GMT
Where If-Unmodified-Since appears.

Practical examples

The header

If-Unmodified-Since: Wed, 21 Oct 2026 07:28:00 GMT

Set or use it in code

curl -X PUT -H 'If-Unmodified-Since: Wed, 21 Oct 2026 07:28:00 GMT' https://example.com/doc

Inspect it

curl -sI https://example.com | grep -i 'if-unmodified-since'

Common mistakes

  • Clock differences
  • Second-level precision hiding changes
  • Preferring it over ETags

Key takeaways

  • If-Unmodified-Since: If-Unmodified-Since makes a request proceed only if the resource has not changed since the given date, otherwise 412.
  • Check it in browser DevTools → Network.
  • Test with curl -I before deploying.

FAQ

When use it?

When ETags are unavailable.

Is If-Unmodified-Since case sensitive?

Header names are case-insensitive; values may not be.

More HTTP articles