aboutsummaryrefslogtreecommitdiffstats
path: root/extras/misc/varnish.vcl
diff options
context:
space:
mode:
authorKristian Lyngstøl <kly@kly.no>2019-04-02 21:16:30 +0200
committerGitHub <noreply@github.com>2019-04-02 21:16:30 +0200
commitecb267e43a5958c747998e833b78fbd49935b03c (patch)
tree282be9f5c7d95a4ef1970d85a9d9bb60985fc105 /extras/misc/varnish.vcl
parent1e2b66012e62a45d461ae0d8dbb0094788908c8b (diff)
parent5737d833a64b6a54d56a53c5d3cb79e34efbcd20 (diff)
Merge pull request #209 from slinderud/master
Templating: New filter getIp, fixed errors in dhcp filters
Diffstat (limited to 'extras/misc/varnish.vcl')
-rw-r--r--extras/misc/varnish.vcl5
1 files changed, 5 insertions, 0 deletions
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;