Commit be86ae4c authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Reindent


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3009 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 9dca1d4e
...@@ -20,25 +20,25 @@ backend default { ...@@ -20,25 +20,25 @@ backend default {
## Called when a client request is received ## Called when a client request is received
# #
#sub vcl_recv { #sub vcl_recv {
# if (req.request != "GET" && # if (req.request != "GET" &&
# req.request != "HEAD" && # req.request != "HEAD" &&
# req.request != "PUT" && # req.request != "PUT" &&
# req.request != "POST" && # req.request != "POST" &&
# req.request != "TRACE" && # req.request != "TRACE" &&
# req.request != "OPTIONS" && # req.request != "OPTIONS" &&
# req.request != "DELETE") { # req.request != "DELETE") {
# pipe; # pipe;
# } # }
# if (req.http.Expect) { # if (req.http.Expect) {
# pipe; # pipe;
# } # }
# if (req.request != "GET" && req.request != "HEAD") { # if (req.request != "GET" && req.request != "HEAD") {
# pass; # pass;
# } # }
# if (req.http.Authorization || req.http.Cookie) { # if (req.http.Authorization || req.http.Cookie) {
# pass; # pass;
# } # }
# lookup; # lookup;
#} #}
# #
## Called when entering pipe mode ## Called when entering pipe mode
...@@ -56,13 +56,13 @@ backend default { ...@@ -56,13 +56,13 @@ backend default {
## Called when entering an object into the cache ## Called when entering an object into the cache
# #
#sub vcl_hash { #sub vcl_hash {
# set req.hash += req.url; # set req.hash += req.url;
# if (req.http.host) { # if (req.http.host) {
# set req.hash += req.http.host; # set req.hash += req.http.host;
# } else { # } else {
# set req.hash += server.ip; # set req.hash += server.ip;
# } # }
# hash; # hash;
#} #}
# #
## Called when the requested object was found in the cache ## Called when the requested object was found in the cache
...@@ -84,22 +84,22 @@ backend default { ...@@ -84,22 +84,22 @@ backend default {
## backend, or the request to the backend has failed ## backend, or the request to the backend has failed
# #
#sub vcl_fetch { #sub vcl_fetch {
# if (!obj.valid) { # if (!obj.valid) {
# error obj.status; # error obj.status;
# } # }
# if (!obj.cacheable) { # if (!obj.cacheable) {
# pass; # pass;
# } # }
# if (obj.http.Set-Cookie) { # if (obj.http.Set-Cookie) {
# pass; # pass;
# } # }
# set obj.prefetch = -30s; insert; # set obj.prefetch = -30s; insert;
#} #}
# #
## Called before a cached object is delivered to the client ## Called before a cached object is delivered to the client
# #
#sub vcl_deliver { #sub vcl_deliver {
# deliver; # deliver;
#} #}
# #
## Called when an object nears its expiry time ## Called when an object nears its expiry time
...@@ -111,5 +111,5 @@ backend default { ...@@ -111,5 +111,5 @@ backend default {
# Called when an object is about to be discarded # Called when an object is about to be discarded
# #
#sub vcl_discard { #sub vcl_discard {
# discard; # discard;
#} #}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment