I’m using W3TC and WPSS, a plugin implementing surveys. This latter can’t work if the page using it is cached.
I had to prevent W3TC from caching that page. To do this I used the “Never cache the following pages” field.
The problem is that W3TC implements Browser cache and it instructs the browser to cache the page. So, the page stays cached unless I disable the Browser cache function in W3TC entirely.
I tried to use some meta tags to stop the browser from caching but W3TC overrides these meta tags.
How can I use the file .htaccess to write some rules, applied to that page only, to stop W3TC from instructing the browser to cache the page?
It might be something like:
<LocationMatch ".*depression-test-for-teenagers.*">
<IfModule mod_headers.c>
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
Header set X-Powered-By "W3 Total Cache/0.9.2.9e"
</IfModule>
</LocationMatch>
But this is incorrect.