diff options
author | Kristian Lyngstol <kly@kly@.no> | 2016-03-25 15:49:37 +0100 |
---|---|---|
committer | Kristian Lyngstol <kly@kly@.no> | 2016-03-25 15:49:37 +0100 |
commit | dff176ae0469bc60604ddae2e9f651881c7026de (patch) | |
tree | e8b867469ae11531b6d865bbf7371035b64100fc /web/etc | |
parent | ddd56ea9f56f098b52cd8aae5b3c54ac26670bac (diff) |
NMS: Tweak colors for DHCP map
Diffstat (limited to 'web/etc')
-rw-r--r-- | web/etc/varnish/nms.vcl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/web/etc/varnish/nms.vcl b/web/etc/varnish/nms.vcl index 0cddebd..53a9444 100644 --- a/web/etc/varnish/nms.vcl +++ b/web/etc/varnish/nms.vcl @@ -37,6 +37,7 @@ sub vcl_recv { return (hash); } + # Rosa magi sub vcl_hash { # Wheee. Legg til authorization-headeren i hashen. @@ -50,4 +51,8 @@ sub vcl_backend_response { if (beresp.http.x-ban) { ban("obj.http.x-url ~ " + beresp.http.x-ban); } + if (beresp.status != 200) { + set beresp.uncacheable = false; + set beresp.ttl = 5s; + } } |