I'm trying to switch off page caching in MVC3. Have tried:
@{
Response.AddHeader("Cache-Control","no-cache");
Response.AddHeader("Pragma", "no-cache,no-store,private,must-revalidate,max-stale=0,post-check=0,pre-check=0 ");
}
But hasn't worked. Thanks.
Just realised I may be asking for the wrong thing. I want to disable form history such that options previous values are not shown when populating a form field.