-
-
Save Kaiderella/df4400f60278a46a0a0b7dc13fedc2b2 to your computer and use it in GitHub Desktop.
Expires Headers on Nginx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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