From 5737d833a64b6a54d56a53c5d3cb79e34efbcd20 Mon Sep 17 00:00:00 2001 From: slinderud Date: Sun, 31 Mar 2019 14:58:08 +0200 Subject: excluded listing of template files from varnish --- extras/misc/varnish.vcl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'extras') diff --git a/extras/misc/varnish.vcl b/extras/misc/varnish.vcl index c47c3e6..e99181c 100644 --- a/extras/misc/varnish.vcl +++ b/extras/misc/varnish.vcl @@ -107,6 +107,11 @@ sub vcl_recv { return (pass); } + # exclude listing of template files + if (req.url ~ "/api/read/template-list" ) { + return (pass); + } + # We don't use cookies - so get rid of them so we don't mess up the cache # by accident. unset req.http.Cookie; -- cgit v1.2.3