• Resolved dlongm01

    (@dlongm01)


    Hi

    Using mpress image refresh. Works well but only if I am logged in to the site.

    If I browse without logging in, images do not refresh (see page link).

    Please advise.

    Thanks.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • @dlongm01

    This is most likely a caching issue. Some web hosts cache the generated page for logged out users, which would prevent the content from changing. If this is the case, I’m afraid the plugin will only provide a fresh image for logged out users after the cache expires or is flushed.

    Thread Starter dlongm01

    (@dlongm01)

    Thanks.

    That makes sense BUT cache bypass (CRTL-F5) does not work which is is little surprising.

    I am curious why that doesn’t affect the displayed image – I would have though the page would be rebuilt on a forced reload.

    @dlongm01

    The CTRL+F5 approach actually only does a hard refresh. However, most browsers also have the ability to do a more extensive clearing of the cache. The issue though is that this would only address the browser cache.

    There are a number of different types of caching that can take place at different locations. There is the browser cache, WordPress caching plugins, object caching, reverse proxy caching, etc.

    Most likely, you have one of the two happening:

    1. A WordPress caching plugin is serving up the same content for all logged out users until the page is updated again in WordPress (which would generally clear the cache for that page).

    2. Your web host is running a reverse proxy cache that serves the same content unless it has reason to believe it shouldn’t. It is common that a reverse proxy cache won’t cache when cookies are set, such as those used when you are logged into WordPress.

    So, if you know you have a certain caching plugin active or want to divulge which web host you are using, I can provide a bit more detail on what specifically might be going on. In the case of #1, you may be able to add a rule to not cache the page(s) on which you want the images to display at random. In the case of #2, you may be able to contact your host and set up similar rules, or you may be able to leverage your host’s built-in cache busting to overcome the issue.

    Thread Starter dlongm01

    (@dlongm01)

    Micah

    That’s really helpful and thanks. We have no WP cache plugin at work but we do use a host that provides a CDN. I will ask them about excluding the specific page from that.

    Again, thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘NO refresh if not logged in’ is closed to new replies.