• Resolved cihomewood

    (@cihomewood)


    Hi

    I have noticed that our live site has a minor problem on iPads, which appears to be cache related.

    We have integrated a membership system into our site, using iFrames. When a viewer is not logged in, a button appears in the iFrame, inviting them to log in. Having done so they are returned to their original page and, as if by magic, the button disappears.

    This works perfectly on Windows and Android, but on iPads the button doesn’t disappear until the page is refreshed, so I assume it is being cached somehow.

    The interesting thing is that this all works perfectly on iPads in our staging site. I know that WP Staging disables caching in the wp-config.php file, so I have tested that on our live site and it seems to make no difference.

    Is there anything else which wp staging does that could be resulting in the function working in the staged site?

    The page to which I have linked is one of those with an iFrame in which the button will appear to logged out users.

    Thanks in advance for any help or advice.

    Ian

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor alaasalama

    (@alaasalama)

    Hi Ian!

    Is there anything else I need to do to reproduce this issue after just opening the link on iPad? Because that’s how I see it:

    https://monosnap.com/file/kOnEYOCawDl7tWb9Yqv57RdkUJdZ6k

    The button is there from the first page-load, that’s on the Chromium browser simulator, or it must be on the real physical iPad? Did you try different device?

    Thanks,
    Alaa

    Thread Starter cihomewood

    (@cihomewood)

    Hi Alaa

    What you are seeing is the logged out state of that page. When the button is clicked and the member logs in the ReturnURL parameter returns then to that page, with the button replaced by the member only information.

    Unfortunately I can’t give you credentials to log in because that is the live site. I can’t recreate it on our staging site, which is why I’m asking what config changes WP Staging makes that may be preventing the problem.

    I have tried disabling the cache in wp-config on the live site, but that doesn’t seem to resolve the problem.

    Thanks

    Ian

    Plugin Author Rene Hermenau

    (@renehermi)

    I don’t think this has anything to do with caching because otherwise, it would fail on other devices as well.

    I rather think it has something to do with some iframe security restrictions on the iPad and the different URL locations of having your staging site in a subfolder of your live site for your very edge case requirement.

    For iframes, there are cross-origin restrictions (CORS). Maybe that one is responsible for your issue. E.g. I can see that you load the iframe content from sm.southportu3a.org.uk while your leading site is sm.southportu3a.org.uk

    The only way to 100% mimic this and reproduce it would be to create a staging site in a subdomain like dev.example.com and then try to figure out the reason for that issue.

    It could also be related to having plain links instead or permalinks active on the staging site. This could be a different thing to test out.

    I am sorry for not having a better answer and hope you find out the reason for your issue on the ipad.

    All the best
    René

    Plugin Author Rene Hermenau

    (@renehermi)

    I am closing it here, but feel free to reply again if you have further information.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Caching on staging site’ is closed to new replies.