Last-Modified provides a modification timestamp for conditional requests. Use a timestamp that reflects the representation the visitor actually receives.
A modification date
Last-Modified: Tue, 15 Sep 2026 10:00:00 GMTThe field uses an HTTP date in GMT. It describes when the origin believes the selected representation was last modified, rather than when this particular request arrived.
Generating a fresh timestamp on every request prevents useful validation. A timestamp tied only to a template may miss changes in the underlying data.
How validation works
A cache or browser can send If-Modified-Since on a later GET or HEAD request. When the representation has not changed since that date, the server can return 304 without the full body.
If-None-Match takes precedence when both conditions are present. Date-based validation has one-second precision, so an ETag can distinguish changes that a timestamp cannot.
Check accuracy and purpose
Verify that a content edit changes the timestamp and that an unchanged response keeps it. Check timezone formatting and behavior across multiple servers. Dynamic content may need an application-defined update time or a suitable ETag.
Missing Last-Modified is not automatically a fault. A response using another validator, or sensitive content that must not be stored, may not need it. Freshness and privacy still come from Cache-Control.