You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Response cache does not work on the following method which returns view containing a form element.If the form element is removed from the view then response cache works. why it is happening?
[Route("Contact")]
[ResponseCache(Duration = 3600)] //Does not working for this method
public IActionResult Contact()
{
return View();
}
[HttpPost]
[Route("Contact")]
public IActionResult Contact(ContactViewModel contactViewModel, IFormFile attachment)
{
//Necessary opertaion goes here
return
View(contactViewModel);
}
The text was updated successfully, but these errors were encountered:
@Tratcher Yes! anti-forgery was enabled and that's why response cache was not working..My question is why response cache does not work when anti-forgery in enabled?
Response cache does not work on the following method which returns view containing a form element.If the form element is removed from the view then response cache works. why it is happening?
The text was updated successfully, but these errors were encountered: