Добрый день. Есть вот такой фрагмент конфига: location ~* ^(.*)(/static/.*)(jpg|jpeg|png)$ { set $webp $1$2webp; set $rootFile "${document_root}${webp}"; if ($http_accept ~* "webp"){set $test A;} if (-f $rootFile) {set $test "${test}B";} if ($test = AB) { add_heby Pianinorama - Nginx Mailing List - Russian