Created
February 10, 2018 12:13
-
-
Save ppartarr/91641babc0229b0a33bc113d862ad7b5 to your computer and use it in GitHub Desktop.
Disable cache in nginx
This file contains 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
# disable cache | |
add_header Last-Modified $date_gmt; | |
add_header Cache-Control 'private no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0'; | |
if_modified_since off; | |
expires off; | |
etag off; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment