Hi,
I am having a hard time figuring out how the cache works, and how to configure it properly. From what I can see, not even the official documentation on your site seems to be correct.
Case:
I have a Magento ecommerce site and thus the global cache cannot be used. I have configured the cache according to the attached screenshot. I then placed this line in .htaccess:
According to the docs this should turn on private cache for all pages.
Yet, when I go to any page, including the cart page, it is retrieved from the public cache!? (see response headers in attached screenshot).
What I don't understand is:
1. Why is the public cache being used although it has been turned off in the config and I do not have CacheEnable in .htaccess?
2. Why is the cache even being used at all on the cart page, as "/checkout" has been added as a "Do-Not-Cache Url" in the config?
If I remove RewriteRule .* - [E=Cache-Controlrivate,L] from .htaccess, the page loads correctly without cache, but then no other pages are cached either.
This does not align with what I read in the documentation, and to me it looks like the cache functionality may have some bugs.
Can anyone from LiteSpeed shed a light on this?
I am having a hard time figuring out how the cache works, and how to configure it properly. From what I can see, not even the official documentation on your site seems to be correct.
Case:
I have a Magento ecommerce site and thus the global cache cannot be used. I have configured the cache according to the attached screenshot. I then placed this line in .htaccess:
Code:
RewriteRule .* - [E=Cache-Control:private,L]
Yet, when I go to any page, including the cart page, it is retrieved from the public cache!? (see response headers in attached screenshot).
What I don't understand is:
1. Why is the public cache being used although it has been turned off in the config and I do not have CacheEnable in .htaccess?
2. Why is the cache even being used at all on the cart page, as "/checkout" has been added as a "Do-Not-Cache Url" in the config?
If I remove RewriteRule .* - [E=Cache-Controlrivate,L] from .htaccess, the page loads correctly without cache, but then no other pages are cached either.
This does not align with what I read in the documentation, and to me it looks like the cache functionality may have some bugs.
Can anyone from LiteSpeed shed a light on this?
Attachments
-
51.5 KB Views: 9
-
44.2 KB Views: 9