Created
October 13, 2021 16:12
-
-
Save vigikaran/0776e961933c473f88c2f0c63e4c5c11 to your computer and use it in GitHub Desktop.
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 ~* \.(?:css|js)$ { | |
access_log off; | |
log_not_found off; | |
expires 30d; | |
add_header Vary Accept-Encoding; | |
add_header Cache-Control "public"; | |
} | |
location ~* \.(?:jpg|jpeg|gif|png|ico|xml|webp)$ { | |
access_log off; | |
log_not_found off; | |
expires 30d; | |
add_header Vary Accept-Encoding; | |
add_header Cache-Control "public"; | |
} | |
location ~* \.(?:eot|woff|woff2|ttf|svg|otf) { | |
access_log off; | |
log_not_found off; | |
expires 30d; | |
add_header Vary Accept-Encoding; | |
add_header Cache-Control "public, no-transform"; | |
add_header Access-Control-Allow-Origin *; | |
} | |
location ~ /\. { | |
access_log off; | |
log_not_found off; | |
deny all; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment