253 lines
5.5 KiB
JSON
253 lines
5.5 KiB
JSON
{
|
|
"status": 200,
|
|
"body": {
|
|
"rules": [
|
|
{
|
|
"actions": [
|
|
{
|
|
"type": "no_store"
|
|
},
|
|
{
|
|
"type": "allow_store"
|
|
}
|
|
],
|
|
"conditions": [
|
|
{
|
|
"field": "url",
|
|
"operator": "regex",
|
|
"values": [
|
|
"^/toggle"
|
|
]
|
|
}
|
|
],
|
|
"enabled": true,
|
|
"id": "vcl-response-3",
|
|
"match": "all",
|
|
"name": "VCL vcl_backend_response line 3",
|
|
"stage": "response"
|
|
},
|
|
{
|
|
"actions": [
|
|
{
|
|
"type": "allow_store"
|
|
},
|
|
{
|
|
"type": "no_store"
|
|
}
|
|
],
|
|
"conditions": [
|
|
{
|
|
"field": "url",
|
|
"operator": "regex",
|
|
"values": [
|
|
"^/no-store"
|
|
]
|
|
}
|
|
],
|
|
"enabled": true,
|
|
"id": "vcl-response-7",
|
|
"match": "all",
|
|
"name": "VCL vcl_backend_response line 7",
|
|
"stage": "response"
|
|
},
|
|
{
|
|
"actions": [
|
|
{
|
|
"type": "no_store"
|
|
}
|
|
],
|
|
"conditions": [
|
|
{
|
|
"field": "url",
|
|
"operator": "regex",
|
|
"values": [
|
|
"^/response-pass"
|
|
]
|
|
}
|
|
],
|
|
"enabled": true,
|
|
"id": "vcl-response-10",
|
|
"match": "all",
|
|
"name": "VCL vcl_backend_response line 10",
|
|
"stage": "response",
|
|
"stop": true
|
|
},
|
|
{
|
|
"actions": [
|
|
{
|
|
"type": "allow_store"
|
|
}
|
|
],
|
|
"conditions": [
|
|
{
|
|
"field": "url",
|
|
"operator": "regex",
|
|
"values": [
|
|
"^/private|^/origin-no-store|^/set-cookie|^/policy-no-store"
|
|
]
|
|
}
|
|
],
|
|
"enabled": true,
|
|
"id": "vcl-response-12",
|
|
"match": "all",
|
|
"name": "VCL vcl_backend_response line 12",
|
|
"stage": "response"
|
|
},
|
|
{
|
|
"actions": [
|
|
{
|
|
"type": "strip_set_cookie"
|
|
}
|
|
],
|
|
"conditions": [
|
|
{
|
|
"field": "url",
|
|
"operator": "regex",
|
|
"values": [
|
|
"^/drop-cookie"
|
|
]
|
|
}
|
|
],
|
|
"enabled": true,
|
|
"id": "vcl-response-14",
|
|
"match": "all",
|
|
"name": "VCL vcl_backend_response line 14",
|
|
"stage": "response"
|
|
},
|
|
{
|
|
"actions": [
|
|
{
|
|
"name": "cache-control",
|
|
"type": "set_backend_header",
|
|
"value": "public, max-age=300"
|
|
}
|
|
],
|
|
"conditions": [
|
|
{
|
|
"field": "url",
|
|
"operator": "regex",
|
|
"values": [
|
|
"^/public-override"
|
|
]
|
|
}
|
|
],
|
|
"enabled": true,
|
|
"id": "vcl-response-16",
|
|
"match": "all",
|
|
"name": "VCL vcl_backend_response line 16",
|
|
"stage": "response"
|
|
},
|
|
{
|
|
"actions": [
|
|
{
|
|
"name": "x-response-stop",
|
|
"type": "set_backend_header",
|
|
"value": "before"
|
|
}
|
|
],
|
|
"conditions": [
|
|
{
|
|
"field": "url",
|
|
"operator": "regex",
|
|
"values": [
|
|
"^/response-stop"
|
|
]
|
|
}
|
|
],
|
|
"enabled": true,
|
|
"id": "vcl-response-20",
|
|
"match": "all",
|
|
"name": "VCL vcl_backend_response line 20",
|
|
"stage": "response",
|
|
"stop": true
|
|
},
|
|
{
|
|
"actions": [
|
|
{
|
|
"name": "x-response-stop",
|
|
"type": "set_backend_header",
|
|
"value": "after"
|
|
}
|
|
],
|
|
"conditions": [
|
|
{
|
|
"field": "url",
|
|
"operator": "regex",
|
|
"values": [
|
|
"^/response-stop"
|
|
]
|
|
}
|
|
],
|
|
"enabled": true,
|
|
"id": "vcl-response-21",
|
|
"match": "all",
|
|
"name": "VCL vcl_backend_response line 21",
|
|
"stage": "response"
|
|
},
|
|
{
|
|
"actions": [
|
|
{
|
|
"name": "X-After-Response-Stop",
|
|
"type": "set_header",
|
|
"value": "yes"
|
|
}
|
|
],
|
|
"conditions": [],
|
|
"enabled": true,
|
|
"id": "vcl-deliver-25",
|
|
"match": "all",
|
|
"name": "VCL vcl_deliver line 25",
|
|
"stage": "deliver"
|
|
},
|
|
{
|
|
"actions": [
|
|
{
|
|
"name": "X-Deliver-Stop",
|
|
"type": "set_header",
|
|
"value": "before"
|
|
}
|
|
],
|
|
"conditions": [
|
|
{
|
|
"field": "url",
|
|
"operator": "regex",
|
|
"values": [
|
|
"^/deliver-stop"
|
|
]
|
|
}
|
|
],
|
|
"enabled": true,
|
|
"id": "vcl-deliver-28",
|
|
"match": "all",
|
|
"name": "VCL vcl_deliver line 28",
|
|
"stage": "deliver",
|
|
"stop": true
|
|
},
|
|
{
|
|
"actions": [
|
|
{
|
|
"name": "X-Deliver-Stop",
|
|
"type": "set_header",
|
|
"value": "after"
|
|
}
|
|
],
|
|
"conditions": [
|
|
{
|
|
"field": "url",
|
|
"operator": "regex",
|
|
"values": [
|
|
"^/deliver-stop"
|
|
]
|
|
}
|
|
],
|
|
"enabled": true,
|
|
"id": "vcl-deliver-29",
|
|
"match": "all",
|
|
"name": "VCL vcl_deliver line 29",
|
|
"stage": "deliver"
|
|
}
|
|
],
|
|
"warnings": []
|
|
}
|
|
}
|