server { listen 80; server_name localhost; root /usr/tm/nginx/html; location / { try_files $uri $uri/ /index.html; add_header Cache-Control "no-cache, no-store, must-revalidate"; } location /assets { expires 1y; access_log off; add_header Cache-Control "public"; } gzip on; gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; }