Skip to content

Instantly share code, notes, and snippets.

@pentatonicfunk
Created April 25, 2018 04:42
Show Gist options
  • Save pentatonicfunk/e34fe2bec0f0d4f9dc85ee6abdb5b739 to your computer and use it in GitHub Desktop.
Save pentatonicfunk/e34fe2bec0f0d4f9dc85ee6abdb5b739 to your computer and use it in GitHub Desktop.
Force Kill Nginx Cache
# 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