mirror of
https://github.com/thib8956/nginx-proxy
synced 2024-11-22 11:56:31 +00:00
Gzip application/javascript
As per RFC4329, nginx uses application/javascript as the default MIME type for .js files. Nginx-proxy will now gzip these files if the client requests it.
This commit is contained in:
parent
6d646d92f8
commit
36039f8e13
@ -12,7 +12,7 @@ map $http_upgrade $proxy_connection {
|
|||||||
'' '';
|
'' '';
|
||||||
}
|
}
|
||||||
|
|
||||||
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
|
gzip_types text/plain text/css application/javascript application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
|
||||||
|
|
||||||
log_format vhost '$host $remote_addr - $remote_user [$time_local] '
|
log_format vhost '$host $remote_addr - $remote_user [$time_local] '
|
||||||
'"$request" $status $body_bytes_sent '
|
'"$request" $status $body_bytes_sent '
|
||||||
|
Loading…
Reference in New Issue
Block a user