23 lines
454 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;
map $http_user_agent $user_type {
default "desktop";
# Android
"~Mozilla/5.0 \(Linux; Android" mobile;
# Opera
"~Opera Mini" mobile;
# iOS
"~Mozilla/5.0 \(iPhone" mobile;
# Windows Phone
"~Mozilla/5.0 \(Windows Phone" mobile;
}