Skip to content

Instantly share code, notes, and snippets.

@ppartarr
Created February 10, 2018 12:13
Show Gist options
  • Save ppartarr/91641babc0229b0a33bc113d862ad7b5 to your computer and use it in GitHub Desktop.
Save ppartarr/91641babc0229b0a33bc113d862ad7b5 to your computer and use it in GitHub Desktop.
Disable cache in nginx
# 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