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,25 @@
|
||||
{
|
||||
"vhosts": [
|
||||
{
|
||||
"id": "app",
|
||||
"frontend": {"hosts": ["*"]},
|
||||
"backends": [{"id": "origin", "url": "http://127.0.0.1:9000", "allow_private": true}],
|
||||
"load_balancing": {"health_check": {"mode": "off"}},
|
||||
"policy": {
|
||||
"acls": {
|
||||
"vary_duplicate": {"fetch": "res.fhdr_cnt(Vary)", "operator": "eq", "values": ["2"]},
|
||||
"vary_encoding": {"fetch": "res.fhdr(Vary)", "operator": "equals", "ignore_case": true, "values": ["Accept-Encoding"]},
|
||||
"vary_combined": {"fetch": "res.fhdr(Vary)", "operator": "equals", "ignore_case": true, "values": ["Accept,Accept-Encoding", "Accept, Accept-Encoding"]}
|
||||
},
|
||||
"rules": [
|
||||
{
|
||||
"id": "combine-duplicate-vary",
|
||||
"stage": "backend_response",
|
||||
"when": {"all": [{"acl": "vary_duplicate"}, {"acl": "vary_encoding"}, {"acl": "vary_combined"}]},
|
||||
"actions": [{"type": "set_header", "name": "Vary", "value": "Accept, Accept-Encoding"}]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user