mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-11-11 16:49:30 +01:00
fix: Prevent caching of web status (#1370)
This commit is contained in:
1 parent
c5eae88dfc
commit
9fe52c874e
1 file changed
+7
-1
+7
-1
@@ -23,7 +23,13 @@ server {
|
||||
gzip_disable "msie6";
|
||||
gzip_types text/css text/javascript text/xml text/plain text/x-component application/javascript application/json application/xml application/rss+xml font/truetype font/opentype application/vnd.ms-fontobject image/svg+xml;
|
||||
|
||||
add_header Cache-Control "no-cache";
|
||||
set $cache_control "no-cache";
|
||||
|
||||
if ($request_uri ~ "^/(?:msg\.html)?(?:\?.*)?$") {
|
||||
set $cache_control "no-store";
|
||||
}
|
||||
|
||||
add_header Cache-Control $cache_control always;
|
||||
|
||||
location / {
|
||||
|
||||
|
||||
Reference in new issue
Block a user