Hi, 

When I flush my cache, lots of my images have 404 links. It's really boring, the only way I found is to restore a back up.

for example: in this page https://www.maviesansgluten.bio/nous-trouver

Before I flused all caches, all 4 images where displayed. Now only one is. 

How can I fix this ?

Comments

VM’s picture

All four images are there now. Paths looks like. Images are reachable. I don't see an immediate reason why clearing cache would 404 the images.

Tourista’s picture

It does, especially if I flush caches 2 times at short intervals. 

https://www.maviesansgluten.bio/achat-produits-sans-gluten

Before flush, all images were displayed. After flush, some images are not anymore. 

Broken image :

<img title="Aides culinaires sans gluten" onload="pagespeed.CriticalImages.checkImageForCriticality(this);" alt="Aides culinaires sans gluten" src="sites/default/files/transfert/xmvsg_blog_visuel_aides_culinaires_2017.jpg.pagespeed.ic.cuVfweKYyT.webp" data-pagespeed-url-hash="638047784" data-entity-uuid="" data-entity-type="">

Working image : 

<img title="Pates sans gluten" onload="pagespeed.CriticalImages.checkImageForCriticality(this);" alt="Pates sans gluten" src="../sites/default/files/transfert/mvsg_blog_visuel_pates_2017.jpg" data-pagespeed-url-hash="2129749469" data-entity-uuid="" data-entity-type="">

This code comes from ckeditor, I wrote it but I've never added ".pagespeed.ic.xxxxx.webp" by myself. 

I often get this 404 error when an image is displayed from a View + image style. 

Tourista’s picture

It seems that after a flush, the url of the image are changed and get a "x" before the file name. It randomly brakes links.

This url 

src="../sites/default/files/transfert/mvsg_blog_visuel_pates_2017.jpg"

becomes after flush : 

src="sites/default/files/transfert/xmvsg_blog_visuel_aides_culinaires_2017.jpg.pagespeed.ic.cuVfweKYyT.webp"