aboutsummaryrefslogtreecommitdiffstats
path: root/web/etc
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly@.no>2016-03-23 02:52:26 +0100
committerKristian Lyngstol <kly@kly@.no>2016-03-23 02:52:26 +0100
commite4f3bbbaffcc7315f73ecf55a52ad61814d96100 (patch)
treef47553d841556ddd8c79184ad4d3262cdd11af24 /web/etc
parent6ba9bacb3fee3765a74c603c7fd2f9b492c5329d (diff)
NMS: Fix cache invalidation etc
Diffstat (limited to 'web/etc')
-rw-r--r--web/etc/varnish/nms.vcl3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/etc/varnish/nms.vcl b/web/etc/varnish/nms.vcl
index 93da9de..0cddebd 100644
--- a/web/etc/varnish/nms.vcl
+++ b/web/etc/varnish/nms.vcl
@@ -11,6 +11,9 @@ backend default {
# Sort magi.
sub vcl_recv {
+ if (req.url ~ "^/where" || req.url ~ "^/location") {
+ set req.url = "/api/public/location";
+ }
if (req.method != "GET" &&
req.method != "HEAD" &&
req.method != "PUT" &&