From 55e07a4d80fcdd79f16fb6cd52789cd1e60f57d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=91=E8=83=A1=E5=AD=90?= Date: Fri, 25 Oct 2024 10:53:11 +0800 Subject: [PATCH] Correcting error --- files/zh-cn/web/http/caching/index.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/files/zh-cn/web/http/caching/index.md b/files/zh-cn/web/http/caching/index.md index 41919cabd465f9..edd8249c4ec1fe 100644 --- a/files/zh-cn/web/http/caching/index.md +++ b/files/zh-cn/web/http/caching/index.md @@ -33,7 +33,11 @@ Cache-Control: private 个性化内容通常由 cookie 控制,但 cookie 的存在并不能表明它是私有的,因此单独的 cookie 不会使响应成为私有的。 -请注意,如果响应具有 `Authorization` 标头,则不能将其存储在私有缓存(或共享缓存,除非 Cache-Control 指定的是 `public`)中。 +请注意,如果响应具有 `Authorization` 标头,则不能将其存储在共享缓存中,即使设置了 `max-age` 也不能,需明确指定 `public` 指令。 + +```http +Cache-Control: public, max-age=604800 +``` ### 共享缓存