Persistent Cache
-
Hello WPMU team, I have exactly the same problem as this user faced.
https://www.ads-software.com/support/topic/browser-cache-not-cleaned/
I’ll try to explain it to you so can do exactly the same test on your side. For example in an ecommerce: the person is on the page for product “x” and the price is 5 dollars. I go to the backend, change the price to 10 dollars and clear the cache. The person on the website clicks on any other page, for example the home page and returns to the product “x” page and the price remains 5 dollars.
This price will only be updated to 10 dollars if that visitor reloads the page (F5). However, if the person left the page and went to home or other product, for example, and returns to the product “x”, still loads the same cached version. The browser should immediately receive the information that it should search for a new version, as the price has changed.
I did the same test with most other known caching plugins and none of them have this problem. The new version is always uploaded, but with HB it insists on maintaining the same page. I can change anything that the person will be browsing the site in the cached version that is loaded in their browser,
If the person has visited the page before, it will be there, intact. Even if the person closes the browser completely, turns off the computer, the next day or week, turn on and opens the website with the same browser that stored the cache, the price of the product will still be 5 dollars. Unless your browser cache has coincidentally expired. If the browser cache is 1 year old, a frequent visitor will not be able to see new assets on the website until he updates his browser, which is actually not common, the user believes he is on an updated page. Then he will make a new asset request and update the price to 10 dollars.When checking the console, you will have the information “hummingbird-cache: served” where on the first visit after clearing the cache there should still not be this header there, because if I just cleared the cache, the first visit to the page would not yet be in cache .
The HB cache is sensational, the fastest in my opinion, but this problem prevents it from being used in e-commerce. There is nothing to do on my side to solve this problem, perhaps there is something in your code that can force this update.
Thanks!
- You must be logged in to reply to this topic.