Cdn purge not work when with header origin

What is the name of the domain?

wcas.host

What is the issue you’re encountering

cdn purge not work when with header origin

What are the steps to reproduce the issue?

❯ curl -i ‘https://wcas.host/i18md’ -H ‘origin: https://127.0.0.1:7777
HTTP/2 200
date: Wed, 03 Jul 2024 14:02:18 GMT
content-type: text/js
content-length: 13
strict-transport-security: max-age=63072000
cache-control: max-age=6
cf-cache-status: HIT
access-control-allow-origin: *
server: cloudflare
cf-ray: 89d7699649e49016-FRA
alt-svc: h3=“:443”; ma=86400

0.1.31>0.1.36

❯ curl -i ‘https://wcas.host/i18md
HTTP/2 200
date: Wed, 03 Jul 2024 14:02:21 GMT
content-type: text/js
content-length: 13
strict-transport-security: max-age=63072000
cache-control: max-age=6
cf-cache-status: HIT
access-control-allow-origin: *
server: cloudflare
cf-ray: 89d769ac4f508ed9-FRA
alt-svc: h3=“:443”; ma=86400

0.1.37>0.1.39

Screenshot of the error

There is a link in your screenshot that is named “single-file purge exclusions”.

If you click that it takes you to a site that explains it does not work for assets with an origin header.

Is there a way to clear the cache of all Origins for a certain URL? Because this file will be requested from the front end of a third-party website, I’m not sure what their Origin will be?

I don’t believe there is a way to do that on the free plan, but it’s not something I’ve ever tried.

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