aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly.no>2018-04-04 16:36:33 +0200
committerKristian Lyngstol <kly@kly.no>2018-04-04 16:36:33 +0200
commit0ad449caf997ec356bfb80e731460d0f7496fd5c (patch)
tree8ecd0d419ee7805758991986b6f4de7b14677cef /include
parent72a89af57f3ac235b9048bd7cd645b580b93d95b (diff)
Tweak DHCP/uplink/client-port logic
Diffstat (limited to 'include')
-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;