Changeset 3460 for trunk/varnish-cache/bin/varnishd/default.vcl
- Timestamp:
- 12/09/08 14:54:09 (20 months ago)
- Files:
-
- 1 modified
-
trunk/varnish-cache/bin/varnishd/default.vcl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/varnish-cache/bin/varnishd/default.vcl
r3324 r3460 49 49 req.request != "DELETE") { 50 50 /* Non-RFC2616 or CONNECT which is weird. */ 51 pipe;51 return (pipe); 52 52 } 53 53 if (req.request != "GET" && req.request != "HEAD") { 54 54 /* We only deal with GET and HEAD by default */ 55 pass;55 return (pass); 56 56 } 57 57 if (req.http.Authorization || req.http.Cookie) { 58 58 /* Not cacheable by default */ 59 pass;59 return (pass); 60 60 } 61 lookup;61 return (lookup); 62 62 } 63 63 64 64 sub vcl_pipe { 65 pipe;65 return (pipe); 66 66 } 67 67 68 68 sub vcl_pass { 69 pass;69 return (pass); 70 70 } 71 71 … … 77 77 set req.hash += server.ip; 78 78 } 79 hash;79 return (hash); 80 80 } 81 81 82 82 sub vcl_hit { 83 83 if (!obj.cacheable) { 84 pass;84 return (pass); 85 85 } 86 deliver;86 return (deliver); 87 87 } 88 88 89 89 sub vcl_miss { 90 fetch;90 return (fetch); 91 91 } 92 92 93 93 sub vcl_fetch { 94 94 if (!obj.cacheable) { 95 pass;95 return (pass); 96 96 } 97 97 if (obj.http.Set-Cookie) { 98 pass;98 return (pass); 99 99 } 100 100 set obj.prefetch = -30s; 101 deliver;101 return (deliver); 102 102 } 103 103 104 104 sub vcl_deliver { 105 deliver;105 return (deliver); 106 106 } 107 107 108 108 sub vcl_discard { 109 109 /* XXX: Do not redefine vcl_discard{}, it is not yet supported */ 110 discard;110 return (discard); 111 111 } 112 112 113 113 sub vcl_prefetch { 114 114 /* XXX: Do not redefine vcl_prefetch{}, it is not yet supported */ 115 fetch;115 return (fetch); 116 116 } 117 117 118 118 sub vcl_timeout { 119 119 /* XXX: Do not redefine vcl_timeout{}, it is not yet supported */ 120 discard;120 return (discard); 121 121 } 122 122 … … 142 142 </html> 143 143 "}; 144 deliver;144 return (deliver); 145 145 }
