How to force content refresh of a page that has been loaded previously by the user? [closed]

How can any page on the site be forced to refresh or load content by ignoring anything in cache, everytime a visitor visits the page for the second time? The website uses twentyeleven & w3tc (browser caching disabled at the moment).

1 Answer
1

Since, your site already uses W3 Total Cache plugin, let me provide a solution based on it.

Please visit yoursite’s wp-admin/admin.php?page=w3tc_browsercache and look for the text “Set cache control header”. Check this option, if it is unchecked, and then choose “no-cache” for the “Cache control policy”. This needs to be done in three places…

  1. CSS & JS
  2. HTML & XML
  3. Media & Other files

enter image description here

If you do not wish to use W3 Total Cache plugin for some reason, you may set the following in ‘htaccess’ file or in Apache configuration, assuming your server has mod_headers module…

Header set Cache-Control "max-age=0, private, no-store, no-cache, must-revalidate"

Leave a Comment