Back to HTTP Headers
Response

HTTP Last-Modified Header

Indicates the date and time when the resource was last modified. Used for cache validation with If-Modified-Since.

Purpose

Tells clients when the resource was last changed, enabling conditional requests to check for updates efficiently.

Last-Modified: <day-name>, <day> <month> <year> <hour>:<min>:<sec> GMT Example: Last-Modified: Mon, 18 May 2026 12:00:00 GMT

Code Examples

See how to use the Last-Modified header in different tools and languages.

curl -I https://api.example.com/resource
# Last-Modified: Mon, 18 May 2026 12:00:00 GMT

Related Headers

Test Your APIs

last-modified headerhttp last-modifiedhttp headers guide