{ "id":"/axapi/v3/slb/template/cache/{name}", "type":"object", "node-type":"list", "title":"cache", "partition-visibility":"shared", "description":"RAM caching template", "properties":{ "name":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":127, "partition-visibility":"shared", "description":"Specify cache template name", "optional":false }, "accept-reload-req":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Accept reload requests via cache-control directives in HTTP headers", "optional":true }, "age":{ "type":"number", "format":"number", "minimum":1, "maximum":999999, "default":3600, "partition-visibility":"shared", "description":"Specify duration in seconds cached content valid, default is 3600 seconds (seconds that the cached content is valid (default 3600 seconds))", "optional":true }, "default-policy-nocache":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Specify default policy to be to not cache", "optional":true }, "disable-insert-age":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Disable insertion of age header in response served from RAM cache", "optional":true }, "disable-insert-via":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Disable insertion of via header in response served from RAM cache", "optional":true }, "max-cache-size":{ "type":"number", "format":"number", "minimum":1, "maximum":4096, "default":80, "partition-visibility":"shared", "description":"Specify maximum cache size in megabytes, default is 80MB (RAM cache size in megabytes (default 80MB))", "optional":true }, "min-content-size":{ "type":"number", "format":"number", "minimum":0, "maximum":268435455, "default":512, "partition-visibility":"shared", "description":"Minimum size (bytes) of response that can be cached - default 512", "optional":true }, "max-content-size":{ "type":"number", "format":"number", "minimum":0, "maximum":268435455, "default":81920, "partition-visibility":"shared", "description":"Maximum size (bytes) of response that can be cached - default 81920 (80KB)", "optional":true }, "local-uri-policy":{ "type":"array", "minItems":1, "items":{ "type":"object" }, "uniqueItems":true, "array":[ { "properties":{ "local-uri":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":63, "partition-visibility":"shared", "description":"Specify Local URI for caching (Specify URI pattern that the policy should be applied to, maximum 63 charaters)" } } } ] }, "uri-policy":{ "type":"array", "minItems":1, "items":{ "type":"object" }, "uniqueItems":true, "array":[ { "properties":{ "uri":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":63, "partition-visibility":"shared", "description":"Specify URI for cache policy (Specify URI pattern that the policy should be applied to, maximum 63 charaters)" }, "cache-action":{ "type":"string", "format":"enum", "partition-visibility":"shared", "description":"'cache': Specify if certain URIs should be cached; 'nocache': Specify if certain URIs should not be cached; ", "enum":[ "cache", "nocache" ] }, "cache-value":{ "type":"number", "format":"number", "minimum":1, "maximum":999999, "partition-visibility":"shared", "description":"Specify seconds that content should be cached, default is age specified in cache template" }, "invalidate":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":128, "partition-visibility":"shared", "description":"Specify if URI should invalidate cache entries matching pattern (pattern that would match entries to be invalidated (64 chars max))" } } } ] }, "remove-cookies":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Remove cookies in response and cache", "optional":true }, "replacement-policy":{ "type":"string", "format":"enum", "default":"LFU", "partition-visibility":"shared", "description":"'LFU': LFU; ", "enum":[ "LFU" ], "optional":true }, "logging":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":127, "partition-visibility":"shared", "$ref":"/axapi/v3/slb/template/logging", "description":"Specify logging template (Logging Config name)", "optional":true }, "verify-host":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Verify request using host before sending response from RAM cache", "optional":true }, "uuid":{ "type":"string", "format":"string", "minLength":1, "maxLength":64, "partition-visibility":"shared", "modify-not-allowed":1, "description":"uuid of the object", "optional":true }, "user-tag":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":127, "partition-visibility":"shared", "description":"Customized tag", "optional":true } }, "object-keys":[ "name" ], "required":[ "name" ] }