On a site without wordpress but active LSCache module I want to exclude logged in users (custom login script) like this can be done in the wordpess plugin for LSCache.
Are there any rewrite rules or configuration settings I don't know yet?
What I have tried so far are the following rewrite rules where the login_user cookie identifies logged in users:
If the logged in user hits a page first, no cache headers appear (is there anything wrong with my private caching rule?). But if an anonymous visitor requests the page, a cache entry will be served for logged in users too.
Are there any rewrite rules or configuration settings I don't know yet?
What I have tried so far are the following rewrite rules where the login_user cookie identifies logged in users:
Code:
RewriteCond %{HTTP_COOKIE} login_user
RewriteRule .* - [E=Cache-Control:private]
RewriteCond %{HTTP_COOKIE} !login_user
RewriteRule .* - [E=Cache-Control:max-age=300 ]