Skip to content

Commit 7ee4b34

Browse files
authored
Merge pull request #219 from EasyEngine/update/cache-webp
Add WebP to cache static file block
2 parents 456331d + bfbe666 commit 7ee4b34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/config/nginx/main.conf.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ server {
153153
log_not_found off;
154154
}
155155
# Cache static files
156-
location ~* \.(ogg|ogv|svg|svgz|eot|otf|woff|woff2|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf|swf)$ {
156+
location ~* \.(ogg|ogv|svg|svgz|eot|otf|woff|woff2|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf|swf|webp)$ {
157157
add_header "Access-Control-Allow-Origin" "*";
158158
access_log off;
159159
log_not_found off;

0 commit comments

Comments
 (0)