Skip to content

Instantly share code, notes, and snippets.

@Kaiderella
Created August 22, 2018 03:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kaiderella/df4400f60278a46a0a0b7dc13fedc2b2 to your computer and use it in GitHub Desktop.
Save Kaiderella/df4400f60278a46a0a0b7dc13fedc2b2 to your computer and use it in GitHub Desktop.
Expires Headers on Nginx
location ~* \.(jpg|jpeg|webp|gif|png)$ {
expires 365d;
}
location ~* \.(pdf|css|html|js|swf)$ {
expires 30d;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment