问题描述
我在 asp.net 中编写代码时犯了一个错误,错误地使用了 RedirectPermananet
public IActionResult index()
{
return RedirectPermanent(Url());
}
我对 url 的值进行了更改,但浏览器一直转到旧的 url。我已尝试使用此处显示的建议 clearing IISExpress cache 清除缓存,但仍然遇到相同的问题。 我现在意识到我一开始就不应该使用 RedirectPermanent。我怎样才能扭转这种局面?谢谢
解决方法
我能够通过清除单个浏览器(即 chrome)的缓存来解决此问题。清除 IISExpress 缓存对我不起作用