How should the chache rules be set?

Connect with the Workers Community on the Developers Discord, https://discord.cloudflare.com

If this is for a Pages deployment, it will have its own caching, and you should not put your own caching in front of it.

https://developers.cloudflare.com/pages/configuration/serving-pages/#caching-and-performance