Created
May 20, 2017 10:18
-
-
Save tompec/5d2d7b51c918c5c1429c503b9109b57b to your computer and use it in GitHub Desktop.
Leverage browser caching for Nginx server
This file contains hidden or 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
server { | |
# Leverage browser caching | |
location ~* \.(jpg|jpeg|png|gif|ico|css|js|pdf)$ { | |
expires 7d; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment