-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathfull.yml
More file actions
120 lines (112 loc) · 3.39 KB
/
full.yml
File metadata and controls
120 lines (112 loc) · 3.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
fos_http_cache:
generate_url_type: 0
cacheable:
response:
additional_status:
- 100
- 500
cache_control:
defaults:
overwrite: true
rules:
-
match:
path: /abc
host: fos
query_string: (^|&)foo=
methods:
- GET
- POST
ips:
- 1.2.3.4
- 1.1.1.1
attributes:
_controller: fos.user_bundle.*
match_response: "response.getStatusCode() == 404"
expression_language: my.custom.expression-service
headers:
overwrite: false
cache_control:
max_age: 1
s_maxage: 2
public: true
must_revalidate: true
proxy_revalidate: false
no_transform: true
no_cache: false
stale_if_error: 3
stale_while_revalidate: 4
etag: true
last_modified: -1 hour
reverse_proxy_ttl: 42
vary:
- Cookie
- Authorization
ttl_header: X-Reverse-Proxy-TTL
proxy_client:
varnish:
tags_header: My-Cache-Tags
header_length: 1234
default_ban_headers:
Foo: Bar
http:
servers: [22.22.22.22]
base_url: /test
http_client: acme.guzzle.varnish
cache_manager:
enabled: true
custom_proxy_client: acme.proxy_client
tags:
response_header: FOS-Tags
expression_language: acme.expression_language
rules:
-
match:
path: /def
host: friends
query_string: (^|&)bar=
methods:
- PUT
- DELETE
ips: 99.99.99.99
attributes:
_foo: bar
tags:
- a
- b
tag_expressions:
- '"a"'
- '"b"'
invalidation:
expression_language: acme.expression_language
rules:
-
match:
path: /hij
host: symfony
query_string: (^|&)baz=
methods: PATCH
ips: 42.42.42.42
attributes:
_format: json
routes:
invalidate_route1:
ignore_extra_params: false
user_context:
match:
method: GET
hash_cache_ttl: 300
always_vary_on_context_hash: true
role_provider: true
user_identifier_headers:
- Cookie
- Authorization
session_name_prefix: PHPSESSID
user_hash_header: FOS-User-Context-Hash
flash_message:
name: flashtest
path: /x
host: y
secure: true
debug:
header: FOS-Cache-Debug