Merge pull request #322 from tdtgit/master

Address issue #319
This commit is contained in:
VirtuBox 2020-10-13 21:23:13 +02:00 committed by GitHub
commit 4c3ce63a02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -34,6 +34,6 @@ map $realip_remote_addr $avif_suffix_cf {
}
map $avif_suffix_cf$avif_suffix_valid $avif_suffix {
default "";
default ".notexists";
00 ".avif";
}

View File

@ -61,7 +61,7 @@ location /wp-content/plugins/ewww-image-optimizer/images {
access_log off;
log_not_found off;
expires max;
try_files $uri$webp_suffix $uri =404;
try_files $uri$avif_suffix $uri$webp_suffix $uri =404;
}
location ~ \.php$ {
#Prevent Direct Access Of PHP Files From Web Browsers