Please enable device detection in Varnish
My site has different version for mobile / desktop.
So it is not performing well with Varnish due to caching.
Please do enable Device detection in Varnish
Today mobile devices taking place of desktop devices so it is very important to work on mobile-friendly websites for ecommerce business purposes.
This is very important. There are more people using mobile than desktop
Dev joshi commented
Follow these simple methods for improving your mobile-commerce. https://www.sfwpexperts.com/tips-to-increase-conversion-rates-for-mobile-commerce/
Mobile devices revenues will overtake desktop revenues, so device detection in Varnish is really very import.
U.S. mobile retail commerce sales as percentage of retail e-commerce sales from 2017 to 2021
Mobile eCommerce Stats in 2018 and the Future Trends of mCommerce
M-Commerce is very very popular now, so always more websites have a mobile layout. If there is no device detection in Varnish, then fewer people will use the service from Cloudways.
hans mueller commented
when can you add this feature?
I think that device detection is very important.
Rodrigo Lacerda commented
You can add header "Vary: User-Agent" to your application. It isn't the best solution because each different version browser will serve a different cache, but it'll work for you at now.
A solution like the link below would be close to ideal.
An easy, fast, and accurate way to add device detection is via WURFL InFuze for Varnish. Not free, but it works.
HILAL AOUASSAR commented
My traffic is 60% mobile 35% desktop 5% tablet. so Varnish without device detection is useless
yes please add this as a feature to the current Varnish cache settings page to allow for device detection and separate caching for each devices that is configured.
For example:Our sites have phone specific content that is different from tablet and desktop(usability purpose). So we would need varnish cache to detect phone and create a cached version for them and also create a standard cache for all other devices.
These links should give you the basic of how to setup varnish cache for different devices based on user agent:
Yes, please! On WordPress with WP Touch, we can't enable Varnish because it'll just create one "bucket" of cached pages.
Ideally, Varnish would create separate versions for desktop & mobile browsers...but barring that, if we could exclude by user agent, we could at least still cache desktop pages.
Majority of our customers are using other devices than laptops and desktop computers.
If our online shop which we use to sell our products and services does not function on android phones, etc. what is the point of using Varnish!? Please consider this urgently, otherwise I really have to find another company to host my website!
Thank you very much in advance for taking care of the matter.
Varnish without mobile detection - is really of no value - seeing that currently more visitors are coming from mobile than desktop and we have no way of diferenciating between them and sending to correct page. This is an urgent requirement