How to disable browser cache in ASP.NET core rc2?

Disabling browser cache in ASP.NET core:

public class HomeController : Controller
{
    [ResponseCache(NoStore =true, Location =ResponseCacheLocation.None)]
    public IActionResult Index()
    {
        return View();
    }
}

Leave a Comment