add cache headers

This commit is contained in:
wh1te909 2019-11-17 10:12:40 +00:00
parent cb01891adc
commit e62f7e5821
1 changed files with 3 additions and 1 deletions

View File

@ -649,6 +649,8 @@ server {
location / { location / {
root /var/www/rmm/dist; root /var/www/rmm/dist;
try_files \$uri \$uri/ /index.html; 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; error_log /var/log/nginx/frontend-error.log;
access_log /var/log/nginx/frontend-access.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 "${BLUE}Please refer to the github README for next steps${NC}\n"
printf >&2 "\n\n" printf >&2 "\n\n"
printf >&2 "${BLUE}%0.s*${NC}" {1..80} printf >&2 "${BLUE}%0.s*${NC}" {1..80}
printf >&2 "\n" printf >&2 "\n"