Created
May 20, 2019 08:43
-
-
Save bscheshirwork/bb321a1a35cb3f567953d9c1d236acab 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 ~ ^/assets/.*\.(png|jpg|gif|svg)$ { | |
expires max; | |
try_files $uri =404; | |
} | |
# раскомментируйте строки ниже во избежание обработки Yii обращений к несуществующим статическим файлам | |
location ~ \.(png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ { | |
try_files $uri =404; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment