How to Prevent Caching of Your Web Page…..!!!


Steps to prevent caching are below

Browser Side caching Prevention:


There are several methods to prevent browser caching of your website. For the individual user, the simplest method is to disable caching on the user’s web browser. Listed below is the process to disable broswer caching in most web browsers.

Disable Caching in Internet Explorer

  • Open Internet Explorer and select the “Tools” pull-down menu
  • Select “Internet Options”
  • Select “Temporary Internet Files”
  • Select “Settings”
  • Under the heading “Check for newer versions of stored pages”, choose the “Every time I visit the webpage” option.
  • To restore caching, reverse the above procedure.

Disable Caching in Firefox:

  • Open Firefox and select the “Tools” pull-down menu.
  • Select “Options.”
  • Click the “Network” tab.
  • Under “Offline Storage” enter a zero (0) in the total amount used in the cache.
  • To restore caching, reverse the above procedure,increasing the cache value as appropriate.

Using Meta-Tags to Prevent Caching:

  • Open your web page’s code.
  • Enter the following tag into the header:
    • <meta http-equiv=”Pragma” content=”no-cache”>
      <meta http-equiv=”Expires” content=”-1″>
      <meta http-equiv=”CACHE-CONTROL” content=”NO-CACHE”>
  • This process will disallow caching.

 Using Java script and CSS file header

If browsers are caching these files incorrectly, the HTTP headers that the web server is sending are incorrect and will need to be changed, along with the actual JS and CSS files.  The browser uses HTTP headers for direction on where to cache the file.

Note, however, that the HTML page using the JS and CSS will not need to be changed.

In a JQuery window, enter the following script into the file header:

  • Cache-Control: no-cache.
  • Pragma: no-cache.
  • Expires: Sat, 01 Jan 2099 00:00:00 GMT (or the date & time of user’s choice).

Users may desire to explore the controls available using Apache Server tools for more advanced methods.








About Author


Leave A Reply

Powered by