Check if web browser supports WebP images
This commit is contained in:
parent
d410daca03
commit
154784387a
@ -5,4 +5,10 @@ sendfile on;
|
|||||||
tcp_nopush on;
|
tcp_nopush on;
|
||||||
|
|
||||||
# Don't wait to send data in keep-alive state.
|
# 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";
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user