Skip to content

Instantly share code, notes, and snippets.

Created August 4, 2011 21:39
Show Gist options
  • Save anonymous/1126353 to your computer and use it in GitHub Desktop.
Save anonymous/1126353 to your computer and use it in GitHub Desktop.
def set_no_cache
headers["Cache-Control"] = "no-cache, no-store, max-age=0, must-revalidate"
headers["Pragma"] = "no-cache"
headers["Expires"] = "Fri, 01 Jan 1990 00:00:00 GMT"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment