Getting 404 for some images

I have an images subdirectory /images. I get 404 for some images in /images/* while for some I get the images just fine.

Tried purging cache. Turned off bot protection. Both images exist.

200: https://www.mossos.in/images/veg.png
404: Mossos · Ghar Ka Khana Aap Ke Ghar (This returns an HTML page)

Hosted on Cloudflare Pages.

Actually gives me a 200 - sitemeer.com/#https://www.mossos.in/images/mossos-256x256.png - but returns HTML instead of an image. That comes from your server though.

Hm. I meant it returns me a 404 HTML page (200 OK) instead of a png image. This is on Cloudflare Pages.

Is your GitHub repo public? Could you link to it?

It’s private.

I’ve not had any problems uploading files and not seen anyone else with issues either right now.

Are you sure the file is called mossos-256x256.png , in the images folder and doesn’t have really restricted file permissions.

Yes, I’m sure. I shifted from Netlify hosting to Cloudflare Pages.

Could be a case sensitivity issue? I’ve not experimented with Pages and files that use upper case.

1 Like

It was! Apparently the extension for few photos were in uppercase .PNG instead of .png (they caught my attention in Github). I pushed the new files with lowercase. Maybe Netlify isn’t case-sensitive and Pages is.

Now, I purged the cache as /images/* . Disabled Cache in dev tools and also hard refreshed. However, I still see the cache status as HIT.

1 Like

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