DevKits

Caching · Response header

Expires

Legacy: an absolute HTTP date when the response becomes stale.

What is Expires?

Expires provides an absolute date-time after which the response is considered stale. Superseded by Cache-Control: max-age, but still used as a fallback for very old caches.

Typical usage

Prefer Cache-Control: max-age. Only set Expires for legacy compatibility.

Examples

Expires: Wed, 21 Oct 2025 07:28:00 GMT

Common gotchas

If both Expires and Cache-Control: max-age are present, max-age wins. Server clocks drifting from client clocks make absolute Expires unreliable.

Specification

RFC 9111 §5.3

Related headers