Page rules are not working

I would like to cache all the resources from a web application:

https://ytodo.app/ (html)
https://ytodo.app/styles.d63f6c2bab9843e44b2c.css
https://ytodo.app/service-worker.js
https://ytodo.app/manifest.json
https://ytodo.app/app.56044a139486445aa743.js
ttps://ytodo.app/icons/192x192.png 

I have set the following page rules:

*.ytodo.app/*
cache level: cache everything
edge cache ttl: a month

*www.ytodo.app/*
forwarding url: permanent redirection
https://ytodo.app/$1

However I still get ‘cf-cache-status: MISS’ on the response headers for all resources, except for the json and html, which doesn’t show cf-cache-status header, but I suspect they’re not being cached as well.

It’s also not redirecting from www.ytodo.app to ytodo.app

Thank you for your help!

That one shouldn’t have the period in the front. It should just be *ytodo.app/*

And make sure the www redirect rule is the first Page Rule.

1 Like

Everything’s working fine now, wow. Thank you!

1 Like

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