Skip to content

Commit 747fc30

Browse files
committed
* Added woff2 support from PR perusio#255 by @iryston.
1 parent 1325e31 commit 747fc30

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

Diff for: apps/drupal/drupal.conf

+1-2
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ location / {
117117
}
118118

119119
## All static files will be served directly.
120-
location ~* ^.+\.(?:css|cur|js|jpe?g|gif|htc|ico|png|html|xml|otf|ttf|eot|woff|svg)$ {
120+
location ~* ^.+\.(?:css|cur|js|jpe?g|gif|htc|ico|png|html|xml|otf|ttf|eot|woff2?|svg)$ {
121121

122122
access_log off;
123123
expires 30d;
@@ -344,4 +344,3 @@ location @empty {
344344
location ~* ^.+\.php$ {
345345
return 404;
346346
}
347-

Diff for: apps/drupal/drupal_boost.conf

+1-2
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ location / {
116116
}
117117

118118
## All static files will be served directly.
119-
location ~* ^.+\.(?:css|cur|js|jpe?g|gif|htc|ico|png|html|xml|otf|ttf|eot|woff|svg)$ {
119+
location ~* ^.+\.(?:css|cur|js|jpe?g|gif|htc|ico|png|html|xml|otf|ttf|eot|woff2?|svg)$ {
120120
access_log off;
121121
expires 30d;
122122
## No need to bleed constant updates. Send the all shebang in one
@@ -374,4 +374,3 @@ location = /boost_stats.php {
374374
## comment out the above.
375375
#proxy_pass http://phpapache;
376376
}
377-

Diff for: apps/drupal/drupal_boost_escaped.conf

+1-2
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ location / {
119119
}
120120

121121
## All static files will be served directly.
122-
location ~* ^.+\.(?:css|cur|js|jpe?g|gif|htc|ico|png|html|xml|otf|ttf|eot|woff|svg)$ {
122+
location ~* ^.+\.(?:css|cur|js|jpe?g|gif|htc|ico|png|html|xml|otf|ttf|eot|woff2?|svg)$ {
123123
access_log off;
124124
expires 30d;
125125
## No need to bleed constant updates. Send the all shebang in one
@@ -379,4 +379,3 @@ location = /boost_stats.php {
379379
#proxy_pass http://phpapache;
380380
#proxy_set_header Connection '';
381381
}
382-

Diff for: apps/drupal/drupal_escaped.conf

+1-2
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ location / {
120120
}
121121

122122
## All static files will be served directly.
123-
location ~* ^.+\.(?:css|cur|js|jpe?g|gif|htc|ico|png|html|xml|otf|ttf|eot|woff|svg)$ {
123+
location ~* ^.+\.(?:css|cur|js|jpe?g|gif|htc|ico|png|html|xml|otf|ttf|eot|woff2?|svg)$ {
124124
access_log off;
125125
expires 30d;
126126
## No need to bleed constant updates. Send the all shebang in one
@@ -344,4 +344,3 @@ location @empty {
344344
location ~* ^.+\.php$ {
345345
return 404;
346346
}
347-

0 commit comments

Comments
 (0)