Skip to content

Commit

Permalink
Don't Cache index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Oct 1, 2024
1 parent 97b5bc4 commit 8568e51
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion api/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,19 @@ http {

alias /home/etl/api/web/dist/;

try_files $uri $uri.html $uri/ /index.html;
try_files $uri $uri.html $uri/ @index;

autoindex on;
}

location @index {
add_header Cache-Control no-cache;
add_header Expires 0;
add_header Pragma no-cache;

try_files /index.html =404;
}

location /docs/ {
proxy_pass http://127.0.0.1:5001;
proxy_http_version 1.1;
Expand Down

0 comments on commit 8568e51

Please sign in to comment.