- Property Manager name: Cache POST Responses
- Behavior version: The
v2023-01-05
rule format supports thecache_post
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"} | |
use_body | 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 |