diff options
author | Kristian Lyngstol <kly@kly.no> | 2016-03-10 19:15:17 +0000 |
---|---|---|
committer | Kristian Lyngstol <kly@kly.no> | 2016-03-10 19:15:17 +0000 |
commit | 820287be1769b442f101a712a0f008b739f50699 (patch) | |
tree | b8e8311257051ae4ddedbce3c755bc59bfb77c33 /web/nms.gathering.org/api/public/switch-state | |
parent | b8314f8319f00c9bb507d67f11ab8e75d1ca659f (diff) |
NMS: Tweak caching and updates
Diffstat (limited to 'web/nms.gathering.org/api/public/switch-state')
-rwxr-xr-x | web/nms.gathering.org/api/public/switch-state | 2 |
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(); |