aboutsummaryrefslogtreecommitdiffstats
path: root/web/nms.gathering.org/api/public/switch-state
diff options
context:
space:
mode:
Diffstat (limited to 'web/nms.gathering.org/api/public/switch-state')
-rwxr-xr-xweb/nms.gathering.org/api/public/switch-state2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/nms.gathering.org/api/public/switch-state b/web/nms.gathering.org/api/public/switch-state
index e494e6d..999a1d8 100755
--- a/web/nms.gathering.org/api/public/switch-state
+++ b/web/nms.gathering.org/api/public/switch-state
@@ -41,4 +41,6 @@ while (my $ref = $qs->fetchrow_hashref()) {
$nms::web::json{'switches'}{$ref->{'switch'}}{'latency_secondary'} = $ref->{'latency_ms'};
}
+$nms::web::cc{'max-age'} = "5";
+$nms::web::cc{'stale-while-revalidate'} = "30";
finalize_output();