After the web project changes the static image, the front end still displays the previous image

今天做项目的时候遇到一个很奇怪的问题,无论静态资源的图片怎么改前端显示的都是之前的图片。
  1. First of all, I thought it was a problem with the path. After various attempts, I found that my path was okay, and using the browser address bar to directly access this picture was also the picture before it was displayed.
  2. Later, I gave the new picture a name and went to visit this picture and found that I was able to access it. Originally, I used the same name for the two pictures.
  3. After a bit of tricks, I cleared the browser's image cache and finally solved it, which is the browser cache problem.
    Insert picture description here

Guess you like

Origin blog.csdn.net/u013456390/article/details/105708477