Skip to content

Instantly share code, notes, and snippets.

@rscnt
Created June 8, 2013 04:03
Show Gist options
  • Save rscnt/5733993 to your computer and use it in GitHub Desktop.
Save rscnt/5733993 to your computer and use it in GitHub Desktop.
while i'm dumb
// NO FUCKING CACHE (1.1)
response.setHeader("Cache-Control", "private, no-store, no-cache, must-revalidate");
// NO FUCKING CACHE (1.0)
response.setHeader("Pragma", "no-cache");
// GET THE FUCK OFF (?)
response.setDateHeader("Expires", 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment