GuideReference
TrainingSupportCommunity
Guide

cache_​post


By default, POST requests are passed to the origin. This behavior overrides the default, and allows you to cache POST responses.

OptionTypeDescriptionRequires
enabledboolean

Enables caching of POST responses.

{"displayType":"boolean","tag":"input","type":"checkbox"}
use_​bodyenum

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 Content-Type is application/x-www-form-urlencoded. (Use this in conjunction with cache​_id to define relevant query parameters.)