Cache using vary cookie returns stale content
-
I have been using LSCache on a Litespeed server for a few years, its a great product, thanks.
I have a WordPress site which controls access to paywalled content vis a third-party app. When users log in through the third-party app the app places three cookies on their computer.
I used to run private and public caches but recently changes to caching using one of these cookies as a vary cookie. It works well except for one problem which is specific to Safari on iPhone: when a user successfully logs in to the third party app, the LSCache browser continues to return the stale page with the log-in box, instead of displaying the accessed content. All the other pages now display correctly though, showing that the vary cookie is working. Just the page used to log in is stale. If I then purge the page from the cache, it displays correctly on the browser, even if the user now logs in and out multiple times, the browser displays the two cached versions as it should.
I have tried changing browser caching to no effect. I would appreciate any suggested next steps for investigation/solution. Thanks.
The topic ‘Cache using vary cookie returns stale content’ is closed to new replies.