Issue with Files purging

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

What is the issue or error you’re encountering

After purge by files (URLs) header still HIT

What steps have you taken to resolve the issue?

I connected with the Technical Support Engineer, but the support specialist was unable to reproduce, define, or resolve this issue. And suggested to ask the community.
It will be great to get in touch if someone has faced such an issue.

What are the steps to reproduce the issue?

I have a React.js project

  1. Request my API (from my react.js project) → cache-status is MISS
  2. Request my API with the same URL → cache-status is HIT
  3. Take my URL and purge it from Postman by files array → status success
  4. Request my API with the same URL → cache-status is HIT

Issue:
On the 4th point, the cache status should be MISS, but it’s still HIT.

Additional info:
Purge by host is working fine. I tried to remove query parameters from the URL structure, but the result is the same.

To purge individual files, you need to match the complete cache key of the cached resource:

If your API request uses any of these values, make sure that you provide the same values in the purge call.

Also check if you have features like Cache by device type enabled, which would also affect the cache key.

Some examples in the second link:

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.

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

What is the issue or error you’re encountering

After purge by files (URLs) header status is still HIT, instead of MISS

What steps have you taken to resolve the issue?

I connected with the Technical Support Engineer, but the support specialist was unable to reproduce, define, or resolve this issue and suggested asking the community.
It will be great to get in touch if someone has faced such an issue.

What are the steps to reproduce the issue?

I have a React.js project

Request my API (from my react.js project) → cache-status is MISS
Request my API with the same URL → cache-status is HIT
Take my URL and purge it from Postman by files array → status success
Request my API with the same URL → cache-status is HIT
Issue:
On the 4th point, the cache status should be MISS, but it’s still HIT.

Additional info:
Purge by host is working fine. I tried to remove query parameters from the URL structure, but the result is the same.

P.S. Based on the previous suggestion from the community, I’ve tried manipulating the headers. Still not working!