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).
This question appears to be off-topic. The users who voted to close gave these specific reasons:
- "Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?" – EAMann
- "Your question should be specific to WordPress. Generic PHP/JS/HTML/CSS questions might be better asked at Stack Overflow or another appropriate site of the Stack Exchange network. Third party plugins and themes are off topic." – gmazzap, birgire
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...
- CSS & JS
- HTML & XML
- Media & Other files
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"