Skip to content

Instantly share code, notes, and snippets.

@rbnpercy
Created September 19, 2017 13:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rbnpercy/1c43d02e16aefaeca1b5c58ede4a9257 to your computer and use it in GitHub Desktop.
Save rbnpercy/1c43d02e16aefaeca1b5c58ede4a9257 to your computer and use it in GitHub Desktop.
function requestHandler(req, res) {
res.setHeader( 'Cache-Control', 'no-cache, no-store, max-age=0, must-revalidate' );
res.setHeader( 'Pragma' , 'no-cache' );
res.setHeader( 'Expires' , 'Sat, 01 Jan 2000 00:00:00 GMT' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment