DevKits

Conditional · Response header

Last-Modified

When the resource was last modified.

What is Last-Modified?

Last-Modified provides a date-based version of the resource. Prefer ETag when both are available — ETags are more precise and support content-addressed caching.

Typical usage

Set by most static file servers automatically.

Examples

Last-Modified: Wed, 21 Oct 2025 07:28:00 GMT

Specification

RFC 9110 §8.8.2

Frequently asked questions

What is the Last-Modified HTTP header?

Last-Modified provides a date-based version of the resource. Prefer ETag when both are available — ETags are more precise and support content-addressed caching.

Is Last-Modified a request or response header?

Last-Modified is a response header — the server sends it to the client. Set by most static file servers automatically.

What does a Last-Modified header look like?

A typical Last-Modified header looks like: Last-Modified: Wed, 21 Oct 2025 07:28:00 GMT.

Related headers

Work with this header