Skip to content

Last-Modified

Indicates the exact date and time the requested resource was last changed.

The Last-Modified response HTTP header contains the date and time at which the origin server believes the resource was last modified. It is used as a validator to determine if a cache is still fresh. While less accurate than an ETag (which uses content hashes), it serves as a reliable fallback for conditional GET requests.

Servers often attach this automatically when serving static files directly from a filesystem, checking the file’s modification timestamp.

If a browser has a cached version of a file, it will send an If-Modified-Since request on subsequent visits. The server checks the file’s current timestamp against the header. If it hasn’t changed, the server instantly replies with a 304 Not Modified, saving massive amounts of bandwidth.

The value must be formatted as an HTTP-date. Last-Modified: Wed, 21 Oct 2015 07:28:00 GMT

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