By using this site you agree to the use of cookies by Brugbart and our partners.

Learn more

HTTP If-Modified-Since

Reference on the HTTP If-Modified-Since request-header feild, with useful example, and information about the dateformat.

Edited: 2012-05-26 15:09

The HTTP If-Modified-Since Header, is used by user agents when sending a GET request, to check whether a requested resource has changed since the last visit. If the resource hasn't been changed since the last visit, a 304 not modified response is returned, and the cached version is used instead.

This header can be used alone, or in combination with other caching headers, to increase site performance on repeat views, and to lower bandwidth usage.

Date format

The date format of the If-Modified-Since Header is as follows:


Note. GMT must be used as the timezone.


An example of the If-Modified-Since field:

If-Modified-Since: Mon, 29 Nov 2010 09:47:40 GMT

How to use If-Modified-Since

  1. Using the If-Modified-Since Header in PHP
  2. Must-revalidate not working as expected