Hi EveryOne!
I'm using OLS 1.7.16 with WordPress 6.1.1 and LiteSpeed Cache for WP. The problem is that whe I use LSCWP then pages are not re-validated by the browser and not updated.
I have to WP installations at my hosting. One is with SuperCache and it works perfectly with updating of the pages. And one with LSCWP and here I have a small problem.
As I can see using the developer tools in Chromium the problem is that a browser takes page from the blog that uses LSCWP until the max-age is ended or a user press F5.
I see the following in the headers:
The page is in cache - that is very good and I use LSCWP exactly for this. But if I change a blog record then it is not updated in the browser (the cache at the server is re-generated). The browser takes the page from its local cache (disk, it is visible in the developers tools).
OLS doesn't include eTag for generated pages (but do this for all the static files, except cached dynamic files).
From the other side SuperCache works well. It provides the following header in the most cases
Blog page with LSCWP https://octoglass.ru/news/en/620-2/ and with SuperCache https://blog.kvv213.com/2022/12/syn...nogo-obnaruzheniya-i-uskorenie-sinhronizacii/
The server is the same but the virtual hosts are different. Browser cache in LSCWP is disabled:
What can be wrong? I'd like to make the dynamic cached pages to be re-validated before taken from the browser cache.
I'm using OLS 1.7.16 with WordPress 6.1.1 and LiteSpeed Cache for WP. The problem is that whe I use LSCWP then pages are not re-validated by the browser and not updated.
I have to WP installations at my hosting. One is with SuperCache and it works perfectly with updating of the pages. And one with LSCWP and here I have a small problem.
As I can see using the developer tools in Chromium the problem is that a browser takes page from the blog that uses LSCWP until the max-age is ended or a user press F5.
I see the following in the headers:
Code:
cache-control: public, max-age=604800
x-litespeed-cache: hit
OLS doesn't include eTag for generated pages (but do this for all the static files, except cached dynamic files).
From the other side SuperCache works well. It provides the following header in the most cases
cache-control: max-age=3, must-revalidate
and the browser check the page before taking it from the local cache.Blog page with LSCWP https://octoglass.ru/news/en/620-2/ and with SuperCache https://blog.kvv213.com/2022/12/syn...nogo-obnaruzheniya-i-uskorenie-sinhronizacii/
The server is the same but the virtual hosts are different. Browser cache in LSCWP is disabled:
What can be wrong? I'd like to make the dynamic cached pages to be re-validated before taken from the browser cache.