Diable Caching for FrontEndUsers
-
Hi everyone,
I hope someone has an idea how to get this fixed.
I’m have a WP page with FrontEndUsers. FrontEndUsers should see different content.
I tried to set a Coockie to stop showing the chached versions of the pages:in .htaccess:
RewriteCond %{HTTP_COOKIE} ^((?!frontenduser).)*$ RewriteCond %{HTTP_COOKIE} !(wp-postpass|wordpress_logged_in|comment_author)_
This is correctly working in Firefox. However when I use the page on Chrome it isnt working. When the users are logged in they see the cached version, due to browser caching. I saw, that its working with your code (Coockie = wordpress_logged_in_XXX) so I made a workaround and just set a coockie like wordpress_logged_in_frontenduser. Works great in Chrome. Now I tested the page in Edge and have the same problem. Do you have any idea how to fix this problem.
- The topic ‘Diable Caching for FrontEndUsers’ is closed to new replies.