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

-
Dimitris Vayenas commented
It is sad to realise that this issue has been first raised 7 years ago!
I am having this issue with device detection as I use both WP Rocket (for overall optimization of CSS/JS) and Cloudflare. Well, in this scenario and Varnish the end client is not served the right (static) file, nor the correct file it is generated. e.g. if the first person to access a page has a mobile client, then the mobile version will be generated, else no luck.
It is imperative that you address this issue. Our traffic is about 80% mobile these days.
Having positive experience with Cloudways staff, I am confident that they can implement it in no time.
Here follow a couple of links:
https://varnish-cache.org/docs/7.2/users-guide/devicedetection.html
https://github.com/varnishcache/varnish-devicedetectCheers!
-
Smith Wales commented
High quality design, development and marketing packages designed by experts to meet the demands of businesses <a href="https://polywebtech.com/">Affordable Web Designing Services USA</a>
-
Vidya Ortez commented
The best-suited choice for everyone’s web development needs. Visit:https://ortezinfotech.in/e-commerce-dubai
-
Shakeko commented
This is very important.
-
Carol R Nelson commented
This is very important. https://inertiasoft.net
-
Mark Silva commented
Device detection in Vanish is very important as mobiles devices revenues will end desktop revenues by overtaking them.
However This feature is still much necessary
For more information on e-commerce website do check out:
https://www.logochemist.com/blog/things-your-visitors-want-to-see-when-they-land-on-your-website.php -
Larry commented
Wow, it has been 5 years and this still hasn't been added yet? We really need this. What's the problem with adding this function please?
-
Pixelette Technologies commented
read your comment...if you wanna get your solution click on this link..may be you can find your solution...
https://bit.ly/2NNODhv -
Donny commented
5 years later and we still need this!
-
Nadith commented
Please add an additional configuration layer for varnish to give the ability to the user to decide whether to service from varnish cache or the webserver depending on the values stated in the HTTP request header. This can be done with the W3TotalCache plugin (cookie-based caching - maintains separate caches for cookies)
For i.e. If the website is accessed by a mobile device (can be determined by the request header), serve from the mobile cache. If not, serve it from a different cache, etc.
This is very important if the website is specially optimized for mobiles compared to its counter part desktop website.
Google page insight reports having too many html tags (DOM depth, DOM length) for mobile pages even if you use responsive design to go from desktop website to mobile website. So what WordPress developers can do is, remove the desktop load by removing the HTML tags that are not neeed for the mobile website. But in order to do this, varnish cache should be able to have multiple caches.
This is easily achievable in wordpress if you use W3TotalCache plugin. But varnish is a reverse proxy cache which we will have to configure separately.
Thank you.
-
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
-
hans mueller commented
Mobile eCommerce is more and more import than before, so many eCommerce will optimize their website for mobile devices, one of the best ways is to develop a new layout for mobile devices.
If the webmaster wants to set Varnish cache for their Magento 2 website and if the website has more than one layout (one layout for a desktop computer, one layout for mobile devices(smartphone, tablet, etc.)), then they need to set mobile device detection for varnish cache.
In our opinion, set varnish mobile device detection for Magento 2 website is very very easy, because of all the necessary info are predefined in the exported VCL for varnish from Magento 2 admin, so we just need to
1. Export VCL file for varnish from Magento 2 admin, and
2. Upload the exported VCL file to the server
to set mobile device detection for varnish cache.Thank you in advance for your considering to let us set varnish mobile device detection for Magento 2 website.
Best regards,
-
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,