【问题标题】:Undo RedirectPermanent in asp.net在 asp.net 中撤消 RedirectPermanent
【发布时间】:2021-03-26 07:08:49
【问题描述】:

我在 asp.net 中编写代码时犯了一个错误,并错误地使用了 RedirectPermananet

    public IActionResult index()
    {

        return RedirectPermanent(Url());
    }

我对 url 的值进行了更改,但浏览器继续访问旧的 url。我尝试使用此处显示的建议 clearing IISExpress cache 清除缓存,但仍然遇到同样的问题。 我现在意识到我不应该首先使用 RedirectPermanent。我怎样才能扭转这种局面?谢谢

【问题讨论】:

  • 在隐私模式下打开浏览器选项卡,您不应该被错误的路径重定向。没有其他方法可以逆转,清除浏览器缓存应该会有所帮助(除非您选择了错误的选项)。
  • 你用的是什么浏览器?

标签: asp.net iis-express


【解决方案1】:

我能够通过清除单个浏览器(即 chrome)的缓存来解决此问题。清除 IISExpress 缓存对我不起作用

【讨论】:

    猜你喜欢
    • 2013-07-05
    • 1970-01-01
    • 2021-06-01
    • 2010-09-14
    • 2011-01-01
    • 2010-12-06
    • 2014-10-14
    • 2015-12-23
    • 2018-02-08
    相关资源
    最近更新 更多