diff --git a/web/cashtab/nginx.conf b/web/cashtab/nginx.conf index fe1f64483..63a03f7f7 100644 --- a/web/cashtab/nginx.conf +++ b/web/cashtab/nginx.conf @@ -1,41 +1,46 @@ gzip on; gzip_vary on; gzip_proxied any; gzip_comp_level 9; gzip_buffers 16 8k; gzip_http_version 1.1; gzip_min_length 256; gzip_types application/atom+xml application/geo+json application/javascript application/x-javascript application/json application/ld+json application/manifest+json application/rdf+xml application/rss+xml application/xhtml+xml application/xml font/eot font/otf font/ttf image/svg+xml text/css text/javascript text/plain text/xml; server { listen 80; location / { root /usr/share/nginx/html; index index.html index.htm; + location ~ index\.html$ { + add_header Cache-Control "max-age=0, no-cache, no-store, must-revalidate"; + add_header Pragma "no-cache"; + } try_files $uri $uri/ /index.html; } + error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } } \ No newline at end of file