Close Menu
    What's Hot

    Leading Search Engine Optimization Company in Hyderabad!

    April 2, 2024

    Best e-commerce website development company in Hyderabad

    March 31, 2024

    SEO Copywriting: Crafting Content that Ranks and Converts

    March 29, 2024
    Facebook X (Twitter) Instagram
    Webliance.com
    • Home
    • Categories
      1. Digital Marketing
        • Google Ads
        • Lead generation
      2. Brand Promotion
        • Brand Promotion video
        • Brand Website
        • Brochure
      3. Content Management
      4. Corporate Business Email
      5. Website Development
        • Corporate Website
        • landing Page
        • Logo Designing
      6. Social Media Ads
        • Reels and Post
        • Social media marketing
        • Voice Calls
      7. WhatsApp Marketing
      8. YouTube Video Promotions
      Featured
      Recent

      Leading Search Engine Optimization Company in Hyderabad!

      April 2, 2024

      Best e-commerce website development company in Hyderabad

      March 31, 2024

      SEO Copywriting: Crafting Content that Ranks and Converts

      March 29, 2024
    • About Us
    • Services
      • SEO
      • Web Development
      • Web Design
      • Social Media Marketing
    • Portfolio
    • Contact Us
    Facebook X (Twitter) Instagram
    Webliance.com
    Featured

    Introducing Varnish Enhancements: Device Detection & More

    webliance.comBy webliance.comNovember 19, 2023No Comments5 Mins Read
    Facebook Twitter Pinterest Telegram LinkedIn Tumblr WhatsApp Email
    Share
    Facebook Twitter LinkedIn Pinterest Telegram Email
    Varnish Updates

    What if we could take caching a step further and optimize it? We’re excited to announce the enhancement of the Varnish Cache offering on Cloudways with the launch of location-based & device-based caching as well as the ability to ignore query string parameters with Varnish.

    What is Varnish

    Varnish is a potent tool that can supercharge your website’s speed and deliver a seamless browsing experience to your users. Without Varnish, your web server lacks an efficient HTTP reverse proxy cache, resulting in increased server resource utilization, longer page load times, and potential scalability issues.

    The Problem We Set Out to Solve

    Our Varnish implementation has always been great at speeding up load times. However, there were some specific cases that we haven’t been able to cater to, until now that is.

    One such case was of websites with different layouts depending on the device. E.g. a different design for mobile users vs tablet users vs desktop users. Since our Varnish configuration was unable to differentiate between devices, only one of these versions would get the cache, typically the desktop version & served to all users regardless of device type.

    While this didn’t cause any issues for websites with mobile-responsive designs, those with separately designed web pages for each device suffered in terms of usability.

    Additionally, the use of query strings for tracking purposes resulted in Varnish detecting each visit to the URL e.g.

    URL 1: https://example.com/page?gclid=value1

    URL 2: https://example.com/page?gclid=value2

    As separate webpages, instead of serving the webpage from the cache, they would be compiled from scratch on the server end, thus increasing server load & resulting in less optimal load times.

    A similar issue would happen in the case of 404 pages. Since these were detected to not exist & hence not cached, the request would get sent to the server end, thus also contributing to server load.

    Lastly, various Varnish VCL (Varnish Configuration Language) issues, including the WordPress_test cookie problem, redundant code, and URL purge errors, affected the previous implementation.

    The Solution

    At Cloudways, our focus has always been on creating solutions that not only provide you with optimal performance but also provide you with control.

    This is why for the first 2 problems, the solutions created i.e. Device Detection, & Ignore Query String, can be toggled on & off through the application settings menu for each application.

    Device Detection: A Device-Based Caching Solution

    Enabling Device Detection from Application settings will allow Varnish to determine which device users are browsing from. Varnish will then cache web page versions for each device type & serve them appropriately, greatly decreasing load times while improving the user experience for your end users.

    These implementations allow you to get the most out of your servers, reducing the need for additional server resources.

    Note: If your website design supports desktop, tablet, and mobile browsers with the same responsive HTML/CSS markup, then device-based caching is not required.

    Understanding the “Ignore Query String” Feature

    The “Ignore Query String” feature allows you to control how social media query parameters in URLs are handled. When enabled, our caching layer i.e. Varnish, “Ignores” the query string part of each request.

    For example:

    If the URLs were as follows with query strings;

    URL 1: https://example.com/page?gclid=value1

    URL 2: https://example.com/page?gclid=value2

    Varnish would ignore the query strings & treat each as;

    URL: https://example.com/page

    Thus Varnish would detect each request as leading to the same webpage, & serve the same from the cache rather than having the server compile each from scratch. This is useful in cases where you want to serve the same content regardless of the specific parameters in the query string. This works for the following query string types:

    # Query Strings
    1 msclkid
    2 gclid
    3 dm_i
    4 qid
    5 mc_eid
    6 mc_cid
    7 fbclid
    8 cx
    9 ie
    10 cof
    11 siteurl
    12 zanpid
    13 origin
    14 utm_[a-z]+
    15 mr:[A-z]+

    However, it should be noted that while this does improve load times & ensure a consistent user experience, it may cause issues with tracking software while also removing the impact of any & all personalizations based on tracking parameters.

    This means that tracking data from certain social media campaigns (depending on the platform) may be consolidated, and you won’t be able to distinguish between individual campaign sources within your analytics.

    You can learn more about the Ignore Query String functionality Here.

    Conclusion: Balancing Efficiency and Tracking

    In summary, some weaknesses of the old Varnish implementation were evident, and we are actively working to overcome these challenges by introducing new features, re-enabling crucial options, and making necessary bug fixes. With these updates, we aim to provide a better, more user-friendly caching solution that meets the evolving needs of our valued customers.

    Device-based caching with Varnish is an indispensable technique for elevating the performance of non-responsive websites. By tailoring your caching strategy to accommodate the distinctive needs of various devices, you can deliver faster loading times, an improved user experience, and improve your SEO rankings.

    With the correct configuration and vigilant monitoring, Varnish empowers you to offer a seamless and lightning-fast web experience for all users, regardless of the device they employ to access your site.

    As with any web optimization feature, a thoughtful approach that aligns with your specific goals and needs is essential. By harnessing the power of “Ignore Query String” judiciously, you can supercharge your website’s performance and provide a stellar user experience while keeping a close eye on your campaign metrics.

    Inshal Ali

    Inshal is a Content Marketer at Cloudways. With background in computer science, skill of content and a whole lot of creativity, he helps business reach the sky and go beyond through content that speaks the language of their customers. Apart from work, you will see him mostly in some online games or on a football field.

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous Article7 Strategies for Email Marketing That Can Foster the Establishment of an Empire
    Next Article How to Defer Offscreen Images (With and Without Plugins)
    webliance.com
    • Website

    Related Posts

    Leading Search Engine Optimization Company in Hyderabad!

    April 2, 2024

    Best e-commerce website development company in Hyderabad

    March 31, 2024

    SEO Copywriting: Crafting Content that Ranks and Converts

    March 29, 2024

    SEO for Educational Institutions

    March 27, 2024

    Top Web Development Company in Hyderabad

    March 25, 2024

    SEARCH ENGINE OPTIMIZATION: Go Digital

    March 23, 2024

    Contact Us

    Office Address:

    #301 Vamshi millenium
    Yousufguda Check Post, Hyderabad, 500045

    Call us on:
    +91 8977 149 318

    Email us on:
    info@webliance.com

    Categories
    • Analytics (4)
    • Blog (96)
    • Brand Promotion video (2)
    • casino (6)
    • Content Management (1)
    • Digital Marketing (96)
    • Editor's Choice (1)
    • Featured (49)
    • Featured Reviews (7)
    • Opencart (1)
    • SEO (80)
    • SEO Marketing (25)
    • Social (3)
    • Social Media Ads (1)
    • Social media marketing (5)
    • Top Picks (3)
    • Trending (4)
    • Videos (11)
    • Webliance Pvt Ltd (259)
    • Website Development (45)
    • Youtube (2)
    • YouTube Video Promotions (2)
    Top Reviews
    Editors Picks

    Leading Search Engine Optimization Company in Hyderabad!

    April 2, 2024

    Best e-commerce website development company in Hyderabad

    March 31, 2024

    SEO Copywriting: Crafting Content that Ranks and Converts

    March 29, 2024

    SEO for Educational Institutions

    March 27, 2024

    We are progressive digital marketing organization in Hyderabad serving a extensive variety of on-line marketing and Branding services like SEO, SEM, SMO

    Email Us: info@webliance.com
    Contact: +91 8977 149 318

    Facebook X (Twitter) Instagram Pinterest YouTube LinkedIn WhatsApp
    Our Picks

    Leading Search Engine Optimization Company in Hyderabad!

    April 2, 2024

    Best e-commerce website development company in Hyderabad

    March 31, 2024

    SEO Copywriting: Crafting Content that Ranks and Converts

    March 29, 2024
    Categories
    • Analytics
    • Blog
    • Brand Promotion video
    • casino
    • Content Management
    • Digital Marketing
    • Editor's Choice
    • Featured
    • Featured Reviews
    • Opencart
    • SEO
    • SEO Marketing
    • Social
    • Social Media Ads
    • Social media marketing
    • Top Picks
    • Trending
    • Videos
    • Webliance Pvt Ltd
    • Website Development
    • Youtube
    • YouTube Video Promotions
    © 2025 webliance.com. Designed by Webliance Pvt Ltd.
    • Home

    Type above and press Enter to search. Press Esc to cancel.