Issue with Query String visibility and LiteSpeed Cache

[ad_1]

Hey

I got a nice query string visibility control going on. Works great — until I enable LiteSpeed Cache.

So, with cache enabled, any previous loaded state of the page is shown, whether I add or remove a query string.

That does, when you think of it, make some sense. After all, the HTML document generated, is being cached and reused on the client.

If I purge my cache via the WordPress dashboard, any visibility changes on the front end are reflecting the query string fine.

Is that an issue you have encountered before? And do you have any advice? Should I hook into something, disable caching on parts of the page?

Please let me know if you need me to describe the issue better. I’d love to utilize both Block Visibility and caching. 🙂

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer