As the title says,
I don’t want to change the name every time I modify it, top.jpg, top-1.jpg, top-2.jpg...
This would be endless.
But if the same file name is used. Under IE9, the new top.jpg will be downloaded normally, while browser modes such as 360 directly call the local cached top.jpg.
This will cause a lot of problems. I can't let everyone clear the cache when something goes wrong, right?
How did you deal with the same problem? Ask for answers.
If you don’t actively clear the cache, how long will these cache files be saved locally?
Is there any way to tell the browser to re-download the image?
If you don’t have a CDN, don’t worry about it. Read caching can effectively reduce the pressure on the server. It’s impossible. Let's say that every time the user refreshes, it should be retrieved from the server again.
I don't think it's that complicated now.
It is very simple to modify a certain picture.
Users can make timely changes wherever needed.
However, people who have visited this website before directly call the cache, causing my modifications to not take effect.
Then pass the value after the image address, for example, change src="top.jpg" to src="top.jpg?1"
Any number after the question mark can be used, as long as it is different from the previous one Just the same!
Thank you, Ok.