| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- server {
- listen 80;
- server_name localhost;
- root /usr/share/nginx/html;
- gzip on;
- gzip_disable "msie6";
- gzip_vary on;
- gzip_proxied any;
- gzip_comp_level 6;
- gzip_buffers 16 8k;
- gzip_http_version 1.1;
- gzip_min_length 256;
- gzip_types
- application/javascript
- application/json
- application/manifest+json
- application/xml
- font/eot
- font/otf
- font/ttf
- image/svg+xml
- text/css
- text/javascript
- text/plain
- text/xml;
- location / {
- index index.html index.htm;
- try_files $uri $uri/ /index.html;
- add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0";
- }
- location ~* \.(?:css|js|woff2?|eot|ttf|otf|svg|png|jpe?g|gif|ico)$ {
- expires 1y;
- access_log off;
- add_header Cache-Control "public, max-age=31536000, immutable";
- }
- }
|