Skip to content

Instantly share code, notes, and snippets.

@jeffsaracco
Created October 29, 2011 23:07
Show Gist options
  • Save jeffsaracco/1325211 to your computer and use it in GitHub Desktop.
Save jeffsaracco/1325211 to your computer and use it in GitHub Desktop.
No Cache on ASP MVC Controller - to handle back button refresh
[OutputCache(NoStore = true, Duration = 0, VaryByParam = "None")]
public ActionResult Search(int param1, int param2)
{
//...action code
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment