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
* feat(core): initial commit for disabling query string in key
* feat(core): add disable_query parameter
* docs: update README with new configuration
* fix: missing new configuration parameters in two plugin files
* test: fix tests because of disable_query changes, add new tests for disable_query
Copy file name to clipboardExpand all lines: README.md
+6
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,7 @@ cache_keys:
83
83
disable_body: true # Prevent the body from being used in the cache key
84
84
disable_host: true # Prevent the host from being used in the cache key
85
85
disable_method: true # Prevent the method from being used in the cache key
86
+
disable_query: true # Prevent the query string from being used in the cache key
86
87
headers: # Add headers to the key
87
88
- Authorization # Add the header value in the key
88
89
- Content-Type # Add the header value in the key
@@ -102,6 +103,7 @@ default_cache:
102
103
disable_body: true # Prevent the body from being used in the cache key
103
104
disable_host: true # Prevent the host from being used in the cache key
104
105
disable_method: true # Prevent the method from being used in the cache key
106
+
disable_query: true # Prevent the query string from being used in the cache key
105
107
headers: # Add headers to the key
106
108
- Authorization # Add the header value in the key
107
109
- Content-Type # Add the header value in the key
@@ -165,6 +167,7 @@ surrogate_keys:
165
167
| `cache_keys.{your regexp}.disable_body` | Disable the body part in the key matching the regexp (GraphQL context) | `true`<br/><br/>`(default: false)` |
166
168
| `cache_keys.{your regexp}.disable_host` | Disable the host part in the key matching the regexp | `true`<br/><br/>`(default: false)` |
167
169
| `cache_keys.{your regexp}.disable_method` | Disable the method part in the key matching the regexp | `true`<br/><br/>`(default: false)` |
170
+
| `cache_keys.{your regexp}.disable_query` | Disable the query string part in the key matching the regexp | `true`<br/><br/>`(default: false)` |
168
171
| `cache_keys.{your regexp}.headers` | Add headers to the key matching the regexp | `- Authorization`<br/><br/>`- Content-Type`<br/><br/>`- X-Additional-Header` |
169
172
| `cache_keys.{your regexp}.hide` | Prevent the key from being exposed in the `Cache-Status` HTTP response header | `true`<br/><br/>`(default: false)` |
170
173
| `cdn` | The CDN management, if you use any cdn to proxy your requests Souin will handle that | |
@@ -189,6 +192,7 @@ surrogate_keys:
189
192
| `default_cache.key.disable_body` | Disable the body part in the key (GraphQL context) | `true`<br/><br/>`(default: false)` |
190
193
| `default_cache.key.disable_host` | Disable the host part in the key | `true`<br/><br/>`(default: false)` |
191
194
| `default_cache.key.disable_method` | Disable the method part in the key | `true`<br/><br/>`(default: false)` |
195
+
| `default_cache.key.disable_query` | Disable the query string part in the key | `true`<br/><br/>`(default: false)` |
192
196
| `default_cache.key.headers` | Add headers to the key matching the regexp | `- Authorization`<br/><br/>`- Content-Type`<br/><br/>`- X-Additional-Header` |
193
197
| `default_cache.key.hide` | Prevent the key from being exposed in the `Cache-Status` HTTP response header | `true`<br/><br/>`(default: false)` |
194
198
| `default_cache.nuts` | Configure the Nuts cache storage | |
@@ -457,6 +461,7 @@ There is the fully configuration below
457
461
disable_body
458
462
disable_host
459
463
disable_method
464
+
disable_query
460
465
headers X-Token Authorization
461
466
hide
462
467
}
@@ -476,6 +481,7 @@ There is the fully configuration below
0 commit comments