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
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 { map $avif_suffix_cf$avif_suffix_valid $avif_suffix {
default ""; default ".notexists";
00 ".avif"; 00 ".avif";
} }

View File

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