Blog section of website always responds with expired

Hi there!

Hoping someone can help me. I’m not the most technical person although I have some basic understanding.

I’m trying to instruct Cloudflare to cache the blog section of our website. I have tried adding a page rule with cache everything and edge cache to 1 month. The homepage seems to get a HIT response which is great but the /blog/* section always has an EXPIRED response. I have signed up for for cache reserve to increase the chance of it being served from cloudflare cache however the page constantly goes back to the server in order to fetch the page(?) Any help would be greatly appreciated!

P.s I am using cloudflare also via the wordpress plugin on API

site is

(https://motionbase.com.au)

Thank you.

A greater (and possibly related) issue is any post takes about 25 seconds to load.

Headers for https://motionbase.com.au/blog/5-corporate-video-production-trends-of-2023/ include

date: Wed, 16 Aug 2023 23:44:24 GMT
expires: Wed, 16 Aug 2023 23:43:58 GMT
last-modified: Wed, 16 Aug 2023 23:40:25 GMT

Note the expires time is before the date.

2 Likes

Thank you for your response. Much appreciated.

I obviously have some issues here as to why blog pages are taking so long to load. The rest of the site with static pages seem to load relatively fast.

Do you have any tips on how to adjust the expired time to be after the current date?

Thank you

The issue is wait time, not page load time. The page loads quickly once the server returns a response


(The above is for https://motionbase.com.au/blog/post-production-backup-workflow/.)

Agreed.

/blog/ has a long (one month) max-age and an even longer (a year) s-maxage

cache-control: max-age=2678400, s-maxage=31536000

I wouldn’t call this ideal—it may result in serving stale content.

Unlike /blog/, any /blog/<post> is missing the following Response headers

x-wp-cf-super-cache
x-wp-cf-super-cache-active
x-wp-cf-super-cache-cache-control
x-wp-cf-super-cache-cookies-bypass

This suggests that the WP cache plug-in isn’t caching posts (I assume as it is instructed not to.)

The difference in time between date and expires is approximately equal to that of the waiting time above.

This doesn’t explain why it takes so long for the server to respond to a request though.

Thank you for your help, I think I might have found out what was causing the cache to miss on blog posts. I had Disqus comment plugin enabled. I disabled it to test and now i seem to be getting hits on the posts and it’s loading much faster.

I’ll keep the plugin disabled for now and research a bit more in the mean time.

Thank you very much for your help!