在 location / {} 中添加 proxy_cache_revalidate on; ,重启nginx就好了。可参考 https://blog.vircloud.net/build/nginx-cdn.html#selection-609.3422-609.3448