Skip to content

Commit 82cb3c4

Browse files
committed
add webfont suffixes to the static-file location pattern
1 parent 8d6cde9 commit 82cb3c4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nginx/image-files/etc/nginx/nginx.conf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@ http {
7575
try_files $uri $uri/ /index.php?$args;
7676
}
7777

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)$ {
78+
# define suffixes for static files
79+
# 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)$ {
8081

8182
# set expire Header
8283
expires 6M;

0 commit comments

Comments
 (0)