• Resolved gbruzzo

    (@gbruzzo)


    Hello there

    WP 4.6.1 / WC 2.6.4

    We have observed a slightly odd mobile vs desktop behaviour (with a particular plugin developed by YITH (Quick View)):

    In essence this plugin adds a second button to products in category view (above and beyond the ‘View Details’ button of WC). This button triggers the launch of a modal window allowing the customer to add products to cart without having to got to the product page.

    It also has a toggle to allowing for it not to load on mobile devices. We believe it discriminates between the two by header and not by viewport (since the buttons do not vanish on a desktop browser when resizing the window).

    We observed, that desktop pages are being sent to mobile (and vice versa, depending on what device we use first after clearing the cache); Comet Cache is not able to discriminate between desktop and mobile cache.

    Is this down to a configuration issue (e.g. ‘mobile salt’) or down to the plugin not implementing specific Woocommerce/Wordpress directives?

    Any help appreciated

    Giacomo Bruzzo

    • This topic was modified 9 years, 7 months ago by gbruzzo.
Viewing 2 replies - 1 through 2 (of 2 total)
  • @gbruzzo Comet Cache does not have a ‘mobile mode’ at this time, which is what you’d need to have it cache both the desktop and the mobile versions of the site separately, however we have a feature request open and it’s currently high on our list of priorities for an upcoming release.

    In the meantime, you could use the User-Agent Exclusion Patterns feature to exclude any mobile User-Agents from the cache (the User-Agent is likely what’s being used to determine which version of the theme to load), that way the mobile theme doesn’t get cached.

    The other option would be to have a deeper integration between the theme and Comet Cache by using Dynamic Version Salts. With that feature, you can tell Comet Cache to create a separate version of the cache whenever the mobile version of the theme is loaded. Some theme developers, such as the Weaver II Theme, have special integration with Comet Cache for this purpose.

    Comet Cache v161221 has been released and the Pro version now includes a Mobile Mode option. See the v161221 announcement for further details.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘responsive sites / mobile cache’ is closed to new replies.