Skip to content

Commit

Permalink
docs: update description for hide_cache_headers (#11026)
Browse files Browse the repository at this point in the history
  • Loading branch information
kayx23 authored Mar 12, 2024
1 parent f932fbe commit c8db320
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/en/latest/plugins/proxy-cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ The data to be cached can be filtered with response codes, request modes, or mor
| cache_bypass | array[string] | False | | | Conditions in which response from cache is bypassed. Whether to skip cache retrieval. If at least one value of the string parameters is not empty and is not equal to `0` then the response will not be taken from the cache. For example, `["$arg_bypass"]`. |
| cache_method | array[string] | False | ["GET", "HEAD"] | ["GET", "POST", "HEAD"] | Request methods for which the response will be cached. |
| cache_http_status | array[integer] | False | [200, 301, 404] | [200, 599] | HTTP status codes of the Upstream response for which the response will be cached. |
| hide_cache_headers | boolean | False | false | | When set to `true` adds the `Expires` and `Cache-Control` headers to the client response. |
| hide_cache_headers | boolean | False | false | | When set to `true`, hide the `Expires` and `Cache-Control` response headers. |
| cache_control | boolean | False | false | | When set to `true`, complies with Cache-Control behavior in the HTTP specification. Used only for memory strategy. |
| no_cache | array[string] | False | | | Conditions in which the response will not be cached. If at least one value of the string parameters is not empty and is not equal to `0` then the response will not be saved. |
| cache_ttl | integer | False | 300 seconds | | Time that a response is cached until it is deleted or refreshed. Comes in to effect when the `cache_control` attribute is not enabled or the proxied server does not return cache header. Used only for memory strategy. |
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/latest/plugins/proxy-cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ description: 本文介绍了 Apache APISIX proxy-cache 插件的相关操作,
| cache_bypass | array[string] || | | 当该属性的值不为空或者非 `0` 时则会跳过缓存检查,即不在缓存中查找数据,可以使用变量,例如:`["$arg_bypass"]`|
| cache_method | array[string] || ["GET", "HEAD"] | ["GET", "POST", "HEAD"] | 根据请求 method 决定是否需要缓存。 |
| cache_http_status | array[integer] || [200, 301, 404] | [200, 599] | 根据 HTTP 响应码决定是否需要缓存。 |
| hide_cache_headers | boolean || false | | 当设置为 `true` 时将 `Expires``Cache-Control` 响应头返回给客户端。 |
| hide_cache_headers | boolean || false | | 当设置为 `true` 时不将 `Expires``Cache-Control` 响应头返回给客户端。 |
| cache_control | boolean || false | | 当设置为 `true` 时遵守 HTTP 协议规范中的 `Cache-Control` 的行为。 |
| no_cache | array[string] || | | 当此参数的值不为空或非 `0` 时将不会缓存数据,可以使用变量。 |
| cache_ttl | integer || 300 秒 | | 当选项 `cache_control` 未开启或开启以后服务端没有返回缓存控制头时,提供的默认缓存时间。 |
Expand Down

0 comments on commit c8db320

Please sign in to comment.