set-cache-control-directives <connect_options> [--echo|-e] [--no-prompt|-Q] [--verbose|-v] [--uri-pattern|-t pattern] --config|-c config-name --vs|-s vs-name (propertyname=value)+
Use this command to edit the file cache directives. Web Server uses the cache-control directives to control the information that is cached by a Proxy Server. Using the cache-control directives, you can override the default caching of the proxy to protect sensitive information from being cached. For these directives to work, the Proxy Server must comply with HTTP 1.1. The properties that you can edit are as follows:
public — Indicates that the response is cachable by any cache. This is the default behavior.
private — Indicates that the response is only cachable by a private (non-shared) cache.
no-cache — Indicates that the response is not cached.
no-store — Indicates that the cache does not store the request or response anywhere in nonvolatile storage.
must-revalidate — Indicates that the cache entry is re-validated from the originating server.
max-age — The maximum age (in seconds) the client accepts a response.
For connect_options description, see help(1).
Specify this option to print this command on the standard output before executing. This option also prints the default value for all the non-mandatory options that you do not provide in the command.
If you specify this option, wadm will not prompt you for passwords while executing this command. Use this option if you have defined all passwords in a password file and specified the file using the --password-file connect_option.
Specify this option to display a verbose output.
Specify the URI wildcard pattern.
Specify the name of the configuration.
Specify the name of the virtual server.
Specify the name and value of the cache control directive property that you want to edit. The list of properties are private, public, max-age, no-cache, must-revalidate, and no-store.
wadm set-cache-control-directives --user=admin --password-file=../admin.passwd --host=serverhost --port=8989 --ssl=true --no-prompt --rcfile=null --config=config1 --vs=vs1 public=true private=true must-revalidate=true
The following exit values are returned:
command executed successfully
error in executing the command