1. Using HTML metatags: we can prevent Web browsers caching.
  2. <meta content="Sun, 20 Fed 2000 01:11:11 GMT"
    /> <meta http-equiv="Pragma" content="no-cache" />
  3. Here free trial offer Meta tag tells the browser, cached copy of the page in back date.That means browser should never cache the page.
  4. But some browser does not support this approach .If you are working with php and include the header that has Meta definition.
  5. For this case, use php Header function to produce the two meta tags above
  6. <?php header('Expires: Sun, 20 Fed 2000 01:11:11 GMT');header('Pragma: no-cache'); ?>
  7. Or use
  8. <?php header('Expires: Sun, 20 Fed 2000 01:11:11 GMT'); header('Cache-Control: no-store, no-cache, must-revalidate'); header('Cache-Control: post-check=0, pre-check=0', FALSE); header('Pragma: no-cache'); ?>
  9. In this case visitor will always see the latest contents.
eXTReMe Tracker