+ webp octobercms support

This commit is contained in:
2021-11-16 21:35:03 +03:00
parent e6477518d2
commit cbb1d79584
6 changed files with 29 additions and 12 deletions

View File

@ -1,5 +1,17 @@
#rewrite "^(.*)\.(\d{10})\.(css|js)$" $1.$3 break;
location ~* \.(jpg|jpeg|gif|png|svg|ico)$ {
location ~* \.(gif|svg|ico)$ {
access_log off;
expires max;
log_not_found off;
error_page 404 = /empty;
}
location ~* \.jpge?g$ {
access_log off;
expires max;
log_not_found off;
error_page 404 = /empty;
}
location ~* \.png$ {
access_log off;
expires max;
log_not_found off;