浏览器cachingredirecturl。 我怎样才能防止它被caching?

我正在使用nginx重写一个url

rewrite ^/old$ /new1 permanent; 

我需要每隔几天将/ oldredirect到(/ new1)的地址。 我注意到,当我更改/ new1 url到/ new2并重新启动nginx,浏览器仍然redirect到/ new1直到我清除浏览器caching。

如何防止浏览器cachingredirecturl?

PS我需要不断更改url的原因是,我在其中一个网站上设置了一个横幅,为了不打扰网站所有者一直使用新的url,我虽然给他一个地址使用并不断改变我的redirect。

你不应该使用永久redirect。 代码应该是:

 rewrite ^/old$ /new1 redirect;