add 'ico' and 'webp' to image extensions list in order to bypass rails

This commit is contained in:
Régis Hanol 2017-06-22 12:55:27 +02:00
parent 2e7753c27f
commit 94a0d43f31

View File

@ -151,7 +151,7 @@ server {
try_files $uri =404;
}
# this allows us to bypass rails
location ~* \.(gif|png|jpg|jpeg|bmp|tif|tiff|svg)$ {
location ~* \.(gif|png|jpg|jpeg|bmp|tif|tiff|svg|ico|webp)$ {
try_files $uri =404;
}
# thumbnails & optimized images