From e4f3bbbaffcc7315f73ecf55a52ad61814d96100 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Wed, 23 Mar 2016 02:52:26 +0100 Subject: NMS: Fix cache invalidation etc --- web/etc/varnish/nms.vcl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'web/etc/varnish/nms.vcl') 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" && -- cgit v1.2.3