-
Notifications
You must be signed in to change notification settings - Fork 10k
Description
Existing documentation URL(s)
https://developers.cloudflare.com/api/resources/cache/
What changes are you suggesting?
Under Purge Cached Content by URL it says:
NB: When including the Origin header, be sure to include the scheme and hostname. The port number can be omitted if it is the default port (80 for http, 443 for https), but must be included otherwise.
This implies that the scheme and hostname are only required when including the Origin header, but instead, they seem to be always required no matter what.
When I try to make a request to purge_cache with urls that don't include the scheme and hostname (e.g. '/path/to/image.jpg') I get an error
Unable to purge/path/to/image.jpg, which is an invalid URL.
and I'm not exactly sure what "Origin header" the docs are referring to, but I don't think I can be "including the Origin header" without knowing that I am.
Additional information
No response