Squid 配置指令 send_hit
可用版本:
此指令在 Squid 的 v8 版本中不可用。
对于 v5 之前的旧版本,请参阅以上链接页面。
配置详情
| 选项名称 | send_hit |
|---|---|
| 替代 | |
| 要求 | |
| 默认值 | 默认情况下,此指令未使用,也没有任何效果。 |
| 建议配置 |
|
Responses denied by this directive will not be served from the cache (but may still be cached, see store_miss). This directive has no effect on the responses it allows and on the cached objects. This directive is applied to both regular from-cache responses and responses reused by collapsed requests (see collapsed_forwarding). Please see the "cache" directive for a summary of differences among store_miss, send_hit, and cache directives. Unlike the "cache" directive, send_hit only supports fast acl types. See https://wiki.squid.org.cn/SquidFaq/SquidAcl for details. For example: # apply custom Store ID mapping to some URLs acl MapMe dstdomain .c.example.com store_id_program ... store_id_access allow MapMe # but prevent caching of special responses # such as 302 redirects that cause StoreID loops acl Ordinary http_status 200-299 store_miss deny MapMe !Ordinary # and do not serve any previously stored special responses # from the cache (in case they were already cached before # the above store_miss rule was in effect). send_hit deny MapMe !Ordinary |
|
