update
This commit is contained in:
parent
f04c14116d
commit
a16316979c
4 changed files with 75 additions and 8 deletions
29
http/gzip.conf
Normal file
29
http/gzip.conf
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# Enable gzip for common text-based responses.
|
||||
gzip on;
|
||||
gzip_vary on;
|
||||
gzip_comp_level 4;
|
||||
gzip_min_length 256;
|
||||
|
||||
# This does not remove ETag or Last-Modified headers; it only controls when
|
||||
# nginx may gzip requests that already passed through an intermediary proxy.
|
||||
gzip_proxied expired no-cache no-store private no_last_modified no_etag auth;
|
||||
|
||||
gzip_types
|
||||
application/atom+xml
|
||||
application/javascript
|
||||
application/json
|
||||
application/ld+json
|
||||
application/manifest+json
|
||||
application/rss+xml
|
||||
application/vnd.geo+json
|
||||
application/vnd.ms-fontobject
|
||||
application/wasm
|
||||
application/x-web-app-manifest+json
|
||||
application/xhtml+xml
|
||||
application/xml
|
||||
image/svg+xml
|
||||
text/css
|
||||
text/javascript
|
||||
text/plain
|
||||
text/xml
|
||||
text/vtt;
|
||||
Loading…
Add table
Add a link
Reference in a new issue