Skip to Content

Caching control lets you enable or disable the proxy’s response cache for proxied traffic. When the cache is enabled, repeated identical requests return the cached response instead of hitting the upstream server.

apxy caching

Control cache behavior for proxied traffic

Options

-h, --help help for caching

Options inherited from parent commands

--config string config file (default is ./configs/default.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

apxy caching disable-cache

Disable upstream caching for proxied traffic

Synopsis

Disable upstream caching by stripping cache headers from proxied requests.

Flags: —host only disable caching for this host (empty = all hosts)

apxy caching disable-cache [flags]

Examples

apxy caching disable-cache --host "api.example.com"

Options

--control-url string control API URL (default "http://127.0.0.1:8081") -h, --help help for disable-cache --host string only disable caching for this host (empty = all)

Options inherited from parent commands

--config string config file (default is ./configs/default.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

apxy caching enable-cache

Re-enable normal upstream caching behavior

Synopsis

Re-enable normal upstream caching behavior, undoing a previous disable-cache command.

apxy caching enable-cache [flags]

Examples

apxy caching enable-cache

Options

--control-url string control API URL (default "http://127.0.0.1:8081") -h, --help help for enable-cache

Options inherited from parent commands

--config string config file (default is ./configs/default.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

Last updated on