【发布时间】:2015-10-20 01:58:06
【问题描述】:
这是文档:
proxy_cache_bypass
定义不从缓存中获取响应的条件。如果字符串参数中至少有一个值不为空且不等于“0”,则不会从缓存中获取响应:proxy_cache_bypass $cookie_nocache $arg_nocache$arg_comment;proxy_cache_bypass $http_pragma $http_authorization;
可以与 proxy_no_cache 指令一起使用。proxy_no_cache
定义不将响应保存到缓存的条件。如果字符串参数中至少有一个值不为空且不等于“0”,则不会保存响应:proxy_no_cache $cookie_nocache $arg_nocache$arg_comment;proxy_no_cache $http_pragma $http_authorization;
可以与 proxy_cache_bypass 指令一起使用。
这是否意味着如果我想完全排除缓存中的某些内容,我应该同时设置proxy_no_cache 和proxy_cache_bypass?我只设置proxy_cache_bypass可以吗?
【问题讨论】: