You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,6 +106,9 @@ default_cache:
106
106
- GET
107
107
- POST
108
108
- HEAD
109
+
allowed_additional_status_codes: # Allowed additional HTTP status code to cache.
110
+
- 202
111
+
- 400
109
112
cache_name: Souin # Override the cache name to use in the Cache-Status header
110
113
distributed: true # Use Olric or Etcd distributed storage
111
114
key:
@@ -196,6 +199,7 @@ surrogate_keys:
196
199
| `cdn.service_id` | The service id if required, depending the provider | `123456_id` |
197
200
| `cdn.zone_id` | The zone id if required, depending the provider | `anywhere_zone` |
198
201
| `default_cache.allowed_http_verbs` | The HTTP verbs to support cache | `- GET`<br/><br/>`- POST`<br/><br/>`(default: GET, HEAD)` |
202
+
| `default_cache.allowed_additional_status_codes` | The additional HTTP status code to support cache | `- 200`<br/><br/>`- 404` |
199
203
| `default_cache.badger` | Configure the Badger cache storage | |
200
204
| `default_cache.badger.path` | Configure Badger with a file | `/anywhere/badger_configuration.json` |
201
205
| `default_cache.badger.configuration` | Configure Badger directly in the Caddyfile or your JSON caddy configuration | [See the Badger configuration for the options](https://dgraph.io/docs/badger/get-started/) |
@@ -425,6 +429,7 @@ There is the fully configuration below
Copy file name to clipboardExpand all lines: docs/website/content/docs/configuration.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,6 +122,10 @@ The default_cache prefix configure the default cache behavior. (e.g. `default_ca
122
122
The allowed_http_verbs prefix configure the HTTP verbs allowed to get cached. (e.g. `default_cache.allowed_http_verbs`).
123
123
default: `[GET, HEAD]`
124
124
125
+
#### Allowed additional status code
126
+
The allowed_additional_status_codes prefix configure the additional HTTP status codes allowed to get cached. (e.g. `default_cache.allowed_additional_status_codes`).
127
+
default: `[]`
128
+
125
129
#### Badger
126
130
The badger prefix configure the badger storage. (e.g. `default_cache.badger`).
0 commit comments