Skip to content

Commit

Permalink
Add WebP to cache static file block
Browse files Browse the repository at this point in the history
  • Loading branch information
dhsathiya committed Dec 26, 2022
1 parent 456331d commit bfbe666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/config/nginx/main.conf.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ server {
log_not_found off;
}
# Cache static files
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)$ {
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)$ {
add_header "Access-Control-Allow-Origin" "*";
access_log off;
log_not_found off;
Expand Down

0 comments on commit bfbe666

Please # to comment.