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

17 comments
-
Donny commented
5 years later and we still need this!
-
Anonymous commented
Hukumat Networks is a leading internet marketing company that has been satisfying customers with a wide range of marketing services since 2007.
https://hukumat.com/ -
Anonymous commented
Alkaline water is any type of water with a pH level higher than 7, which is the pH of regular tap water. Iodized alkaline water comprises alkaline compounds and dissolved solids, such as salts and metals, and has medicinal and remedial properties. Alkaline Water During Pregnancy, keep you and your baby healthy as all of us know that pregnancy is exciting and, at the same time, scary. Thus one needs to keep themselves healthy and fit.
Drink Kangen Water During Pregnancy as the blood can become acidic during pregnancy, so drinking alkaline water can assist stabilize the body’s pH level. It restores the alkaline mineral absorbed by the fetus and strengthens the immunity system.
Alkaline Water in Pregnancy also helps the side effect of pregnancy, such as Indigestion and Heartburn, Decreased Energy and Fatigue, Constipation, and Morning Sickness.Advertiser Website: https://bit.ly/31MN1Jd
-
Anonymous commented
With more use of mobiles and digital media, it is always recommended to have a responsive website. Mobiles usage are increasing day by day so it is must that e-commerce business should have mobile websites. Visit https://www.ecommerceseoexperts.com/ to know more!
-
This feature is much important. Also we can use AMP services. Visit: https://www.impressicodigital.com/service/search-engine-optimization/mobile-seo/
-
Anonymous commented
This feature is still needed. Please make custom hash functions possible
-
Anonymous commented
This is very important. There are more people using mobile than desktop
-
Anonymous commented
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
https://www.outerboxdesign.com/web-design-articles/mobile-ecommerce-statistics -
David commented
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
Hello,
when can you add this feature?
I think that device detection is very important.Best regards,
-
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.
https://spin.atomicobject.com/2013/02/11/varnish-cache-mobile-devices/
-
Anonymous commented
An easy, fast, and accurate way to add device detection is via WURFL InFuze for Varnish. Not free, but it works.
https://www.scientiamobile.com/page/wurfl-infuze -
HILAL AOUASSAR commented
My traffic is 60% mobile 35% desktop 5% tablet. so Varnish without device detection is useless
-
Greg commented
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:
https://www.varnish-cache.org/docs/trunk/users-guide/devicedetection.html
https://github.com/varnishcache/varnish-devicedetect
https://spin.atomicobject.com/2013/02/11/varnish-cache-mobile-devices/ -
Andrew commented
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.
-
Anonymous commented
Hi,
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.
Best regards, -
Anonymous commented
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
Leonard