Setting Last Modified Dates

The browser can check whether channel pages have been modified by reading the MIME header that comes with those pages and by checking the Last-Modified item in the header. In fact, the browser can request only the page's header, which means that it can check the last modified date without having to download the whole page.

On the other hand, this creates a lot of header requests. One way of changing that is the LASTMOD attribute of the <CHANNEL> and <ITEM> elements, which you set to a date and Greenwich Mean Time (GMT) like this: "2001-10-15T01:00:00". The browser can get the last modified time of a page from an element that uses the LASTMOD attribute in the CDF file, and download the document only if the cached version ...

Get Inside XML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.