14 lines
308 B
Plaintext
14 lines
308 B
Plaintext
# Speed up file transfer by using sendfile().
|
|
sendfile on;
|
|
|
|
# Don't send partial frames, which increases throughput.
|
|
tcp_nopush on;
|
|
|
|
# Don't wait to send data in keep-alive state.
|
|
tcp_nodelay on;
|
|
|
|
# Check if web browser supports WebP images
|
|
map $http_accept $webp_suffix {
|
|
default "";
|
|
"~*webp" ".webp";
|
|
} |