Exclude pages or URL's from Varnish
I would like to suggest having the option to exclude certain pages or URL's from Varnish. Most of the time Varnish is great, but in some instances it can cause issues. One particular instance right now is a very typical Wordpress + WooCommerce setup where Varnish causes the site to not save items to the cart. I did heaps of testing and it's directly a Varnish issue.
However it would be great to keep Varnish on parts of the site where it doesn't conflict, because the performance gains are fantastic. Would be a great addition to the console.
Cheers'
~ Daniel
This is now live:
https://support.cloudways.com/how-to-exclude-url-from-varnish/
Along with including/excluding cookies:
https://support.cloudways.com/how-to-include-or-exclude-cookies-from-varnish/
Cloudways Team
-
AdminCloudways
(Admin, Cloudways)
commented
This is now live. Find it in the Application Tab, next to the clone server button.
You can now enable/disable varnish at whole server level (Server Tab -> Manage Services) or as mentioned at a single application level from the Application Tab.
Cloudways Team
-
AdminCloudways
(Admin, Cloudways)
commented
We plan to allow an option to disable varnish for a given application (so situations in which you need to disable varnish for a whole server for just one application will not happen).
Let us know your comments / thoughts on this.
Cloudways Team
-
Peter
commented
Agree, bc. one page I had turn off Varnish completely on server.
-
Tevya Washburn
commented
I agree. A simple button to bypass Varnish for an entire app would be helpful for many things. We have to request this often. However, a more detailed option to make it work with specific plugins, etc, would also be really nice. We use Coming Soon Pro and have to have Varnish disabled for the entire app, in order to use the custom URL that bypasses the "coming soon" page. We send that URL to our clients to view their new site while we're building their site.
-
Tony Antony
commented
Currently varnish caches all pages. Most WordPress plugins using cookie won't work with caching due to cookie being disabled by caching. Most popular plugin with this issue is woocommerce (which is being added as an application here at cloudways). Another plugin with issue is ithemes security when hide backend option is enabled. Similarly there are many plugins. Ability to exclude specific url is a good solution for this issue. This can be either through support ticket or though application options.