mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-11-11 00:40:07 +01:00
fix: Do not set no-store on index page (#1377)
This commit is contained in:
1 parent
d5bb90f012
commit
1917eae0ae
2 files changed
+2
-8
No files matched your search
@@ -1,6 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
fKill "progress.sh"
|
||||
|
||||
if [ -s "$QEMU_DIR/qemu.host" ] && [[ "$(<"$QEMU_DIR/qemu.host")" == "172.17."* ]]; then
|
||||
warn "your container IP starts with 172.17.* which will cause conflicts when you install the Container Manager package inside DSM!"
|
||||
fi
|
||||
|
||||
@@ -25,18 +25,10 @@ server {
|
||||
|
||||
set $cache_control "no-cache";
|
||||
|
||||
if ($uri = /) {
|
||||
set $cache_control "no-store";
|
||||
}
|
||||
|
||||
if ($uri = /msg.html) {
|
||||
set $cache_control "no-store";
|
||||
}
|
||||
|
||||
if ($uri = /index.html) {
|
||||
set $cache_control "no-store";
|
||||
}
|
||||
|
||||
add_header Cache-Control $cache_control always;
|
||||
|
||||
location / {
|
||||
|
||||
Reference in new issue
Block a user