Skip to content

Commit

Permalink
Merge pull request #219 from EasyEngine/update/cache-webp
Browse files Browse the repository at this point in the history
Add WebP to cache static file block
  • Loading branch information
mrrobot47 authored Feb 7, 2023
2 parents 456331d + bfbe666 commit 7ee4b34
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 7ee4b34

Please # to comment.