如何清除nginxcaching

我的nginxconfiguration在这里: http : //p.ngx.cc/0c

这个链接http://aa-tour.ru/static/system/css/style.css显示我旧的caching版本的文件,如何删除它并清除caching? 这是正确的(新)版本的文件http://aa-tour.ru/static/system/css/style.css?v=1

这只是静态文件。 我更新了它(添加了一些类contact-formcontact-form-button )…

这不是nginxcaching。 在你的configuration中缺lessproxy_cachefastcgi_cache和类似的指令。

由于指令expires 30d; ,您的浏览器caching的文件expires 30d; 在35行configuration。 你为什么决定nginxcaching这个文件?

对以前“回答”的人 伙计们,请仔细阅读问题:D

你可以尝试使用这个bash脚本从nginxcaching中删除你的静态文件:

希望能帮助到你。

在这里回答: https : //stackoverflow.com/questions/6236078/how-to-clear-the-cache-of-nginx

发送文件closures;

还禁用了cloudflare …