Last-Modified: When the resource last changed. Older alternative to ETag, paired with If-Modified-Since. Last-Modified tells the client when a resource last changed, such as Last-Modified: Wed, 15 May 2026 12:00:00 GMT. Browsers send that date back later in If-Modified-Since to check whether their cached copy is still current. Web servers set it automatically for static files, based on the file's modification time.
It also matters for SEO. A sitemap lastmod value or a Last-Modified header that reflects real content changes helps search engines decide when to recrawl a page. Values that change on every request, or never change at all, teach crawlers to ignore them. For dynamic pages, use the actual date the content was updated, such as the updated_at of the main record shown.
Use when reviewing or setting HTTP response headers for a web app or API - security headers (Content-Security-Policy, Strict-Transport-Security, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy), CORS headers, caching headers (Cache-Control, ETag, Last-Modified, Vary) and cookies (Set-Cookie flags). Also use when a security scan reports missing headers.
'Expert-level browser automation, debugging, and performance analysis using Chrome DevTools MCP. Use for interacting with web pages, capturing screenshots, analyzing network traffic, and profiling performance.'
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.