aboutsummaryrefslogtreecommitdiffstats
path: root/extras/misc/varnish.vcl
diff options
context:
space:
mode:
authorKristian Lyngstol <kristian@bohemians.org>2016-11-14 14:13:46 +0100
committerKristian Lyngstol <kristian@bohemians.org>2016-11-14 14:13:46 +0100
commit752f4846f42ed0758c013820def30bca92f8a5d0 (patch)
tree8a9562c561c16465079ccea7134d643901ea34f8 /extras/misc/varnish.vcl
parent2c27e86a0f0291a40d45b3da9e9773983d49c2ad (diff)
Templating with POST support
Probably has to be tweaked a bit, but it works. Fixes #146
Diffstat (limited to 'extras/misc/varnish.vcl')
-rw-r--r--extras/misc/varnish.vcl10
1 files changed, 5 insertions, 5 deletions
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;