The Caching Problem

We have now seen three different kinds of requests: GET, POST, and HEAD. Each of these requests requires a URL pointing to the resource being requested. In some situations, such as the interactive To Do list application we'll be discussing in Chapter 17, a file may be requested multiple times during the course of a user's interaction with the application. Although the contents of the file might change, the URL pointing to that file does not. This situation can cause problems for some browsers. Internet Explorer, for example, is notorious for not updating a web page even though the page's contents have changed.

Firefox and most other browsers generally behave as you would expect, updating the web page with the new information. ...

Get The Book of JavaScript, 2nd Edition 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.