Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

With the Caching Resources policy it is possible to cache requests based on their URL path, HTTP method and HTTP status code. This allows reducing overall traffic to the backend API.
The size of the cache to be used can be defined in the Advanced API Management Settings.

Multiexcerpt
MultiExcerptNameinfo_post_requests


Info

If you want to cache POST requests, you have to enable stateful request payload inspection in your API Implementation.


Configuration Options

All rules that have been defined are listed in section Cached Resources.

Global Caching Settings

OptionDescriptionAllowed Values
Cache API responses forSpecify a duration in seconds for how long the resources are cached (time-to-live).any long integer

Caching Resources Rule

OptionDescriptionAllowed Values
Path Pattern
Enter a regular expression that will be used to identify the REST resource to cache. This applies to the resource path from the API endpoint on, e.g. http://bridge.scheer-acme.com:19038/support /supportcases.a valid regular expression
HTTP Method

Specify a HTTP method to apply the path pattern to.

Multiexcerpt include
MultiExcerptNameinfo_post_requests
PageWithExcerpt@self

You will get a hint as soon as you add a rule containing *  or POST:

*Cache all allowed methods (see below).
GET

Cache GET requests only.

POSTCache POST requests only.
HEADCache HEAD requests only.
Status Code

Specify a status code that will be used to identify the REST resource to cache.

*Cache all status codes.
a specify status codeCache this specific status code only.



Panel
titleOn this Page:

Table of Contents


Panel
titleRelated Pages:

Otp
Floatingfalse
maxHLevel2

rp


  • API Settings
  • rde
    Panel
    titleRelated Documentation: