Cf-cache-status: REVALIDATED

I never seem to be able to get a status of HIT for the cf-cache-status. I have the following page rules set on a FREE Cloudflare account. I can’t input more than 2 links apparently as a new user so the below page rules should be prefixed with www.travelsignals.io

1 /wp-login.php
Security Level: High, Cache Level: Bypass, Disable Performance On
2 /wp-admin/*
Disable Security, Cache Level: Bypass, Disable Performance On
3 /*
Cache Level: Cache Everything

Browser Cache TTL is 1 year and Caching Level is Standard.

I always see the status of REVALIDATED. Here are the response headers.

cache-control: max-age=31536000
cf-cache-status: REVALIDATED
status: 304
x-proxy-cache: MISS

The site is WordPress running WP-Rocket. Any help on setting this up to ensure a HIT status would be much appreciated as I have no idea what I am missing.

Something on your site is setting your resources to expire immediately.

1 Like

Thanks for the sleuthing work. I looked at what WP-Rocket set as default for the headers and this is what I see.

# Perhaps better to whitelist expires rules? Perhaps.
	ExpiresDefault                              "access plus 1 month"
	# cache.appcache needs re-requests in FF 3.6 (thanks Remy ~Introducing HTML5)
	ExpiresByType text/cache-manifest           "access plus 0 seconds"
	# Your document html
	ExpiresByType text/html                     "access plus 0 seconds"
	# Data
	ExpiresByType text/xml                      "access plus 0 seconds"
	ExpiresByType application/xml               "access plus 0 seconds"
	ExpiresByType application/json              "access plus 0 seconds"

Why would they use “access plus 0 seconds” for the default text/html rule?? I assume this is why it doesn’t return a HIT status…

This topic was automatically closed after 31 days. New replies are no longer allowed.