# Include this in the nginx server block that serves this static app. # # Example: # server { # root /var/www/zunda-shiwake; # include /var/www/zunda-shiwake/deploy/nginx-cache.conf; # } etag on; gzip on; gzip_types text/css application/javascript text/javascript; location = /index.html { add_header Cache-Control "no-cache"; } location ~* \.(js|css)$ { add_header Cache-Control "no-cache"; gzip_static on; }