Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not fetch the image — the server returned HTTP error 404 Not Found #50

Open
racha opened this issue Aug 23, 2024 · 1 comment
Open

Comments

@racha
Copy link

racha commented Aug 23, 2024

Sometimes something happen with the CF or WordPress or something that gets the local image and remote image out of sync.... The plugin thinks the image is there on CF but its not...

Is there any way to detect that and trigger offload ?

Fallback to local image file?

@av3nger
Copy link
Owner

av3nger commented Oct 5, 2024

Hi @racha,

Unfortunately, there is no way to detect this without trying to fetch the image. The way the plugin tries to replace images is by checking if an image has a meta value with the Cloudflare hash. Could you please provide some examples of images that are failing? Interested to see if they have the _cloudflare_image_id meta and if they do, but no image is on Cloudflare - why...

Best regards,
Anton

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants