Broken Image PHP

0

Friends, I have my web with images of small sizes for example of 96x96 px that in development shows normal, but when I upload it to production it comes out in the following way

I have to do several times F5, so that the image is visualized, open some way to solve this?

    
asked by Luis Vega 16.12.2017 в 17:22
source

1 answer

2

As aldanux brand well, it is a cache problem. While deleting the cache of your browser (or entering as incognito) you will be able to "solve", the rest of the clients probably continue with the same problem.

What you can do is add a parameter to the URL of the images so that the cached version is ignored. For example:

<img src="https://dominio.com/imagen.jpg?v=1">

It is a technique that is used a lot for what is static content.

    
answered by 16.12.2017 в 18:41