Cache not working with worker

For Workes & Pages, what is the name of the domain?

service.example.com

What is the issue or error you’re encountering

We have a worker in Cloudflare, and we have added a custom domain for it. However, the issue is that when we add a cache rule for the domain, it doesn’t work and still hits the server.