v0.42.0
This commit is contained in:
1 parent
6df256cdbb
commit
0d6249e383
159 files changed
+16737
-1971
No files matched your search
@@ -0,0 +1,12 @@
|
||||
sub vcl_recv {
|
||||
if (req.http.X-Mode == "alpha" && !req.http.X-Skip) {
|
||||
set req.http.X-Class = "alpha";
|
||||
} elsif (req.http.X-Mode ~ "^b" || req.http.X-Fallback == "yes") {
|
||||
set req.http.X-Class = "beta";
|
||||
} else {
|
||||
set req.http.X-Class = "other";
|
||||
}
|
||||
if (req.http.X-Class == "alpha") { set req.http.X-Seen = "yes"; }
|
||||
return(hash);
|
||||
}
|
||||
sub vcl_hash { hash_data(req.http.X-Class); }
|
||||
Reference in new issue
Block a user