Commit 9043c46d authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Added chache header for serice worker. [skip ci]

parent 8f375243
Pipeline #48293 skipped
......@@ -17,6 +17,12 @@ data:
rewrite ^{{ .Values.proxy.external.path }}/gui/(.*)$ /nomad/$1 break;
try_files $uri {{ .Values.proxy.external.path }}/gui/index.html;
}
location {{ .Values.proxy.external.path }}/gui/service-worker.js {
root /app/;
rewrite ^{{ .Values.proxy.external.path }}/gui/(.*)$ /nomad/$1 break;
more_clear_headers "Cache-Control";
add_header Cache-Control "public, max-age=60, s-maxage=60";
}
}
env.js: |
window.nomadEnv = {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment