Skip to content

Instantly share code, notes, and snippets.

@yuliji
Created February 12, 2021 00:10
Show Gist options
  • Save yuliji/cf1b6e5ca61e782b8220c38813709446 to your computer and use it in GitHub Desktop.
Save yuliji/cf1b6e5ca61e782b8220c38813709446 to your computer and use it in GitHub Desktop.
[nginx_no_cache.conf] disable cache for nginx
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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment