• Resolved jesseslam

    (@jesseslam)


    Hi,

    I have an issue I’ve been trying to fix for hours now. On a mobile device this site https://www.nicholasjohninteriors.co.uk/ has issues with removing items from the cart. We are using WP Super Cache and Cloudflare and have tested it with these disabled but the same issue happens. It works fine on a desktop.

    I have added the below to the pages not to be cached and this fixed the issue on a desktop but not on mobile devices.

    /cart/*
    /checkout/*

    To re-produce the issue do the following:

    1. On a mobile go to https://www.nicholasjohninteriors.co.uk/ then on the hoe page add any product to the basket.
    2. Click on the basket icon and the product is there in the basket. Remove the product by clicking the X and the product is removed the basket is showing as empty.
    3. Click on any other page of the site and then click on the basket again the previously removed product is back.
    4. if you then refresh the cart page it shows as empty so it’s as if the cart isn’t refreshing to confirm the changes.

    Is there a way to force pages not to be cached per device but I would assume adding pages not to be cached should apply to all devices?

    Many thanks,

    James Isles

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m having the same issues.

    I’m running Wp Super Cache (Latest) along with WPTouch Pro. Since last week, WP Super Cache continues to serve my Mobile users with cached Desktop versions of the site.

    For whatever reason, although I’m rejecting the Mobile User-Agents, Wp Super Cache keeps serving cached pages…

    Thread Starter jesseslam

    (@jesseslam)

    Hi,

    I have fixed the issue with the help of some other kind people. My issue was because of the expires caching code in my .htaccess file. Check if you have this in yours and change as per the instructions on my other thread https://www.ads-software.com/support/topic/removing-items-from-cart-on-mobile-devices/.

    I replaced what I had with the code below and this fixed it.

    <IfModule mod_headers.c>
      # 1 YEAR
      <FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|jpg|jpeg|png|gif|swf)$">
        Header set Cache-Control "max-age=29030400, public"
      </FilesMatch>
    </IfModule>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Pages Not to be Cached Still Being Cached on Mobiles’ is closed to new replies.