From e62f7e582182f9f08a2efe15f186d3854d131afa Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Sun, 17 Nov 2019 10:12:40 +0000 Subject: [PATCH] add cache headers --- install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 38cb9880..b2e23d1f 100755 --- a/install.sh +++ b/install.sh @@ -649,6 +649,8 @@ server { location / { root /var/www/rmm/dist; try_files \$uri \$uri/ /index.html; + add_header Cache-Control "no-store, no-cache, must-revalidate"; + add_header Pragma "no-cache"; } error_log /var/log/nginx/frontend-error.log; access_log /var/log/nginx/frontend-access.log; @@ -702,4 +704,4 @@ printf >&2 "${BLUE}Installation complete!${NC}\n\n" printf >&2 "${BLUE}Please refer to the github README for next steps${NC}\n" printf >&2 "\n\n" printf >&2 "${BLUE}%0.s*${NC}" {1..80} -printf >&2 "\n" \ No newline at end of file +printf >&2 "\n"