We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d6cde9 commit 82cb3c4Copy full SHA for 82cb3c4
nginx/image-files/etc/nginx/nginx.conf
@@ -75,8 +75,9 @@ http {
75
try_files $uri $uri/ /index.php?$args;
76
}
77
78
- # uncomment to avoid processing of calls to non-existing static files by Yii
79
- location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar|svg)$ {
+ # define suffixes for static files
+ # set caching header and avoid processing of non-existing files by Yii
80
+ location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar|svg|woff|woff2|eot|ttf|otf)$ {
81
82
# set expire Header
83
expires 6M;
0 commit comments