If-Modified-Since
What is If-Modified-Since?
If-Modified-Since: Send the request only if the resource was modified after the given date. Older alternative to ETag. If-Modified-Since asks the server to send a resource only if it changed after a given date. If not, the server replies 304 Not Modified and the client uses its cached copy. Browsers send it automatically when they have a cached response with a Last-Modified header. It saves bandwidth for files and pages that rarely change.
Frequently asked questions about If-Modified-Since
What should you keep in mind with If-Modified-Since?
It is the older of the two validation methods. Dates only have one-second precision and depend on the server's notion of modification time, which can be unreliable when files are copied or deployed. ETags with If-None-Match are more precise and are preferred when both are available. Servers usually support both, and setting either one correctly lets browsers avoid needless downloads.
What does an example of If-Modified-Since look like?
If-Modified-Since: Wed, 15 May 2026 12:00:00 GMT At a glance
| Category | HTTP headers |
|---|---|
| Explained by | Reinier de la Parra |
| Updated |