Skip to content

Commit 59161f2

Browse files
authored
Add WEBP Support by default
1 parent f578f02 commit 59161f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nginx.conf.sample

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ location /static/ {
112112
rewrite ^/static/version\d*/(.*)$ /static/$1 last;
113113
}
114114

115-
location ~* \.(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2|html|json)$ {
115+
location ~* \.(ico|jpg|jpeg|png|gif|svg|webp|js|css|swf|eot|ttf|otf|woff|woff2|html|json)$ {
116116
add_header Cache-Control "public";
117117
add_header X-Frame-Options "SAMEORIGIN";
118118
expires +1y;
@@ -166,7 +166,7 @@ location /media/ {
166166
deny all;
167167
}
168168

169-
location ~* \.(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2)$ {
169+
location ~* \.(ico|jpg|jpeg|png|gif|svg|webp|js|css|swf|eot|ttf|otf|woff|woff2)$ {
170170
add_header Cache-Control "public";
171171
add_header X-Frame-Options "SAMEORIGIN";
172172
expires +1y;

0 commit comments

Comments
 (0)