- Property Manager name: Cache POST Responses
- Behavior version: The
v2024-08-13
rule format supports thecachePost
behavior v1.1. - Rule format status: GA, stable
- Access: Read/Write
- Allowed in includes: Yes
By default, POST requests are passed to the origin. This behavior overrides the default, and allows you to cache POST responses.
Option | Type | Description | Requires | |
---|---|---|---|---|
enabled | boolean | Enables caching of POST responses. | {"displayType":"boolean","tag":"input","type":"checkbox"} | |
useBody | enum | Define how and whether to use the POST message body as a cache key. | {"displayType":"enum","options":["IGNORE","MD5","QUERY"],"tag":"select"} {"if":{"attribute":"enabled","op":"eq","value":true}} | |
IGNORE | Uses only the URL to cache the response. | |||
MD5 | Adds a string digest of the data as a query parameter to the cache URL. | |||
QUERY | Adds the raw request body as a query parameter to the cache key, but only if the POST request's |