• Hi!

    I recently installed Supercacher from the hosting plan Siteground and couldn’t find a way to enable WPtouch with it (mobile theme not working ATM). Please advise. Thank-you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor WPtouch

    (@wptouch)

    Hi @kap2017,

    It looks like the SuperCacher plugin from SiteGround doesn’t have the option to exclude specific user agents. Though, I might be mistaken, so please reach out to your web host and ask. If the option is there, exclude the user agent list below. This will make sure that SuperCacher doesn’t server cached desktop files to mobile visitors and vice versa.

    
    iPhone
    iPod
    Android
    BB10
    BlackBerry
    webOS
    IEMobile/7.0
    IEMobile/9.0
    IEMobile/10.0
    MSIE 10.0
    iPad
    PlayBook
    Xoom 
    P160U
    SCH-I800
    Nexus 7
    Touch
    

    If the option is not there, we recommend WP Super Cache or W3 Total Cache. They are both free plugins and can both be configured to work with WPtouch. You can view instructions here – Configuring cache plugins for WPtouch

    Regards,

    Emilio Rivera
    WPtouch Support

    Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    It doesn’t make sense to disable the caching based on an user agent. However, if you properly send the Vary: User-Agent header, we will keep different caches for different devices. This will prevent iPhone users from loading a cached desktop version of the site and vise-versa.

    You can add the header by adding these lines to your functions.php file:

    function add_vary_header($headers) {
    $headers['Vary'] = 'User-Agent';
    return $headers;
    }
    add_filter('wp_headers', 'add_vary_header');
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Configure Mobile Theme for SuperCacher (Siteground)’ is closed to new replies.