Saturday, April 18, 2009

IE Browser caching issues

Internet Explorer (IE) caches web pages differently when compared to Firefox and Safari. And so, the website developer must take extra care to ensure that their website works as expected in IE.

Here are some tips:

  1. Make sure you set the expiration date for every page. If yours is a dynamic web site, make sure to set the expiration date to 'now' so that the browser is forced to refetch the page.
  2. If you are using AJAX, make sure your XMLHttp requests that use the 'get' method use an URL that changes with time.
I have added links to good webpages that talk about this issue in this web book Mashedge Chapter: Browser Compatibility.

No comments:

Post a Comment