aboutsummaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
Diffstat (limited to 'extras')
-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;