代码之家  ›  专栏  ›  技术社区  ›  Gavin

ASP。Net MVC不需要的缓存问题

  •  0
  • Gavin  · 技术社区  · 16 年前

    谢谢

    1 回复  |  直到 16 年前
        1
  •  1
  •   Community Mohan Dere    9 年前

    用以下命令装饰您的ActionResult OutputCache 属性(请参见 this question ):

    [OutputCache(NoStore = true, Duration = 0, VaryByParam = "*")]
    public ActionResult Edit(int id) { }