From 752f4846f42ed0758c013820def30bca92f8a5d0 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Mon, 14 Nov 2016 14:13:46 +0100 Subject: Templating with POST support Probably has to be tweaked a bit, but it works. Fixes #146 --- extras/misc/varnish.vcl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'extras/misc/varnish.vcl') diff --git a/extras/misc/varnish.vcl b/extras/misc/varnish.vcl index fe8e675..dd71a31 100644 --- a/extras/misc/varnish.vcl +++ b/extras/misc/varnish.vcl @@ -32,11 +32,6 @@ sub vcl_recv { return (synth(418,"LOLOLOL")); } - if (req.method != "GET" && req.method != "HEAD") { - /* We only deal with GET and HEAD by default */ - return (pass); - } - if (req.url ~ "/render") { set req.backend_hint = graphite; } @@ -45,6 +40,11 @@ sub vcl_recv { set req.backend_hint = templating; } + if (req.method != "GET" && req.method != "HEAD") { + /* We only deal with GET and HEAD by default */ + return (pass); + } + # Brukes ikke. Cookies er for nubs. unset req.http.Cookie; -- cgit v1.2.3