Check if web browser supports WebP images

This commit is contained in:
Kolsch Systems 2021-08-16 13:28:51 -07:00
parent d410daca03
commit 154784387a
No known key found for this signature in database
GPG Key ID: 028833B3033A172E

View File

@ -5,4 +5,10 @@ sendfile on;
tcp_nopush on;
# Don't wait to send data in keep-alive state.
tcp_nodelay on;
tcp_nodelay on;
# Check if web browser supports WebP images
map $http_accept $webp_suffix {
default "";
"~*webp" ".webp";
}