The server still picture cannot be updated, overwritten or deleted, and the original picture is still displayed.

  question

Server: Alibaba Cloud, lnmp1.4 version 1.4 (centos7 plus nginx plus mysql plus php)

Recently, the static file of the website was updated with ftp. When it was found that the old picture was covered with the new picture, the front desk still displayed the old picture, and then the picture on the server was deleted. The front desk still displayed the old picture.
Cleaning up the website cache and local Browser Caching will still show that websites with different frameworks have the same problem.

May I ask what may be the reason

Virtual machine profile:

server
 bracket
 listen 80;
 #listen [::]:80;
 server_name  www.domain.com  domain.com ;
 index  index.html  index.htm  index.php  default.html  default.htm  default.php ;
 root  /home/wwwroot/www.domain.com;
 
 include www.domain.com.conf;
 #error_page   404   /404.html;
 location ~ [^/]\.php(/|$)
 bracket
 # comment try_files $uri =404;  to enable pathinfo
 try_files $uri =404;
 fastcgi_pass  unix:/tmp/php-cgi.sock;
 fastcgi_index  index.php ;
 include fastcgi.conf;
 #include pathinfo.conf;
 bracket
 
 location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
 bracket
 expires      30d;
 bracket
 
 location ~ .*\.(js|css)?  dollar
 bracket
 expires      12h;
 bracket
 
 access_log  /home/wwwlogs/www.domain.com.log  access;
 bracket

I will change 30d to 0d, or delete location ~, then restart nginx, or not

Final reason:
Because the website used Baidu Wangpan acceleration before, although the pictures were deleted locally, there are still pictures on the Baidu CDN, so the pictures distributed by the Baidu CDN are displayed on the opened webpage.

Solution:Stop using Baidu Wangpan and speed up. It’s all right.

(Or clean up the Baidu CDN, but I haven’t tried, because I want to add https to the website, and the free version of Baidu Wangpan Acceleration doesn’t support https, so I shut down Baidu Wangpan Acceleration directly.)