Skip to content

Instantly share code, notes, and snippets.

@lgh06
Created March 21, 2016 02:35
Show Gist options
  • Save lgh06/73acf079e19f0665e57a to your computer and use it in GitHub Desktop.
Save lgh06/73acf079e19f0665e57a to your computer and use it in GitHub Desktop.
nginx expire cache-control
location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
expires 1h;
}
location ~* \.(?:html)$ {
expires 1h;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment