Created
April 25, 2018 04:42
-
-
Save pentatonicfunk/e34fe2bec0f0d4f9dc85ee6abdb5b739 to your computer and use it in GitHub Desktop.
Force Kill Nginx Cache
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
# kill cache | |
add_header Last-Modified $date_gmt; | |
add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0'; | |
if_modified_since off; | |
expires off; | |
etag off; | |
# don't cache it | |
proxy_no_cache 1; | |
# even if cached, don't try to use it | |
proxy_cache_bypass 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment