Direct policy requests to cache instead of origin web server 编辑
By default, when a request matches a policy, the Citrix ADC appliance forwards the request either to the origin server directly, or to a load balancing virtual server for the origin, depending on how you have configured cache redirection.
You can change the default behavior so that when a request matches a policy, the request is forwarded to a load balancing virtual server for the cache.
To change the destination for a policy request to the origin or the cache, use the onPolicyMatch
parameter, which specifies where to send requests that match the cache redirection policy.
The valid options are:
-
CACHE
- Directs all matching requests to the cache. -
ORIGIN
- Directs all matching requests to the origin server.
Note:
For this option to work, you must select the cache redirection type as
POLICY
.
Possible values: CACHE
, ORIGIN
Default value: ORIGIN
Change the destination for a policy request to the origin or the cache by using the CLI
At the command prompt, type the following commands to change the destination for a policy hit and verify the configuration:
set cr vserver <name> [-onPolicyMatch (ORIGIN | CACHE)]
<!--NeedCopy-->
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论