Created
August 5, 2017 18:50
-
-
Save ntakouris/3c23d298667f5c6f248b194038f3727c to your computer and use it in GitHub Desktop.
Bottom Functions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Set the Vary: Cookie header to protect clients from caching the response. | |
w.Header().Add("Vary", "Cookie") | |
//and | |
// Clear the request context after the handler has completed. | |
contextClear(r) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment