aboutsummaryrefslogtreecommitdiffstats
path: root/include/nms/web.pm
diff options
context:
space:
mode:
Diffstat (limited to 'include/nms/web.pm')
-rwxr-xr-xinclude/nms/web.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/nms/web.pm b/include/nms/web.pm
index 6592bfb..588498f 100755
--- a/include/nms/web.pm
+++ b/include/nms/web.pm
@@ -85,7 +85,8 @@ sub finalize_output {
$json{'time'} = int($query->fetchrow_hashref()->{'time'});
$json{'hash'} = $hash;
if (defined($get_params{'now'})) {
- $cc{'max-age'} = "3600";
+ $cc{'max-age'} = "60";
+ $cc{'stale-while-revalidate'} = "3600";
}
printcc;