APO not replicating automatically

I’ve set up APO for our server. Plugin is installed and configured as well.
We’re running REDIS Object Cache on a LightSpeed server.

When I test around the world to see if APO has replicated the site. I’m nearly always getting a MISS at first, followed by a subsequent HIT, meaning APO is not replicating my content worldwide, as claimed.

Checked via HTTP response header check | Uptrends

How to fix this?

After reading your post, I’ve just used the same tool to fetch my test APO site from 3 locations, the first (Amsterdam) was a MISS, the two subsequent were HITs (Hong Kong and Guadalajara). The site automatically publishes new content every hour, so the first MISS was expected.

Please see in your results that the Last-Modified header has the same timestamp as the Date header. That indicates to me that something on your origin is updating the Last-Modified header, signaling new content to APO when in fact perhaps there isn’t. You need to investigate what plugin or server setting at your origin is doing this.

Thanks @cbrandt. My timestamps seem ok though.

I’m surprised to see that CF APO updates only once per hour. From what I’ve read, the pages are replicated around the world within 60 seconds.

I’ve noticed when I check on GTMetrix that the first time I check I have a C rating. When I check again a minute later, my score goes up to B or A.

Hi,

I was referring to this:

Screenshot

If Last-Modified is the same time as the request, APO will have to be a MISS, as it means the content has just changed.

If you changed content the second before making the request, the MISS is expected.

If you haven’t changed the content before making the request and the Last-Modified header was updated to that moment, some plugin ma be making this inadvertently, defeating the purpose of APO.

Perhaps I didn’t express myself well. I have a WordPress site which I installed only to test APO. I have this particular test site configured to automatically post new content every hour. I don’t publish every minute as this would create a huge number of posts every day, and I can always publish another post manually if I need.

But APO will update once a first request is made after new content is posted, within 30 seconds. For that it needs a signal from your site, which is normally given by the Cloudflare plugin via API.

This is the expected behavior if you have updated content before you run your first GTMetrix test. If not, then you need to investigate what plugin or origin server setting is causing the Last-Modified header to be updated when it shouldn’t.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.