HTTP If-Modified-Since

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

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:

DD-Mon-YY HH:MM:SS GMT

Note. GMT must be used as the timezone.

Examples

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

Post comment

Links that you insert are not nofollowed, but will be removed by admins if they are considered spam.

[url=Absolute URL for page]TITLE[/url]

You should insert code boxes around code examples, which will be automatically syntax highlighted.

[code1 html|css|javascript|php|sql]Your Code Here[/code1]

You may want to read our Privacy Policy before submitting your comment.