diff --git a/wo/cli/templates/avif.mustache b/wo/cli/templates/avif.mustache index 4685ba8..bfe3e83 100644 --- a/wo/cli/templates/avif.mustache +++ b/wo/cli/templates/avif.mustache @@ -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"; } \ No newline at end of file diff --git a/wo/cli/templates/wpcommon.mustache b/wo/cli/templates/wpcommon.mustache index b3d8152..b69ac38 100644 --- a/wo/cli/templates/wpcommon.mustache +++ b/wo/cli/templates/wpcommon.mustache @@ -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