Skip to content
Snippets Groups Projects
Commit 4197778a authored by John Sparger's avatar John Sparger
Browse files

update nginx config to stop caching static content - ICSHWI-8795

parent 73d10238
No related branches found
No related tags found
2 merge requests!139Merge before release,!122update nginx config to stop caching static content - ICSHWI-8795
...@@ -3,6 +3,12 @@ server { ...@@ -3,6 +3,12 @@ server {
location / { location / {
root /usr/share/nginx/html; root /usr/share/nginx/html;
index index.html; index index.html;
add_header Cache-Control no-cache always;
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html;
location /static {
expires 1y;
add_header Cache-Control public;
}
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment