备忘待验证
location / {
set $nocache "0";
if ($request_uri ~ \/(scripts|includes)\/.*$) {
set $nocache "1";
}
…
proxy_no_cache $nocache;
…
}
参考: https://www.maxcdn.com/one/tutorial/prevent-caching-specific-paths/