From a02f4b2f60c81e09b318a090e5c9c2d2d641c878 Mon Sep 17 00:00:00 2001 From: t7yang Date: Sat, 17 Jul 2021 16:10:02 +0800 Subject: replace wiki links in zh-CN --- files/zh-cn/web/http/headers/cache-control/index.html | 2 +- files/zh-cn/web/http/headers/dpr/index.html | 2 +- files/zh-cn/web/http/headers/set-cookie/samesite/index.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'files/zh-cn/web/http/headers') diff --git a/files/zh-cn/web/http/headers/cache-control/index.html b/files/zh-cn/web/http/headers/cache-control/index.html index 397367f225..ec6bddf597 100644 --- a/files/zh-cn/web/http/headers/cache-control/index.html +++ b/files/zh-cn/web/http/headers/cache-control/index.html @@ -81,7 +81,7 @@ Cache-control: stale-if-error=<seconds>
public
-
表明响应可以被任何对象(包括:发送请求的客户端,代理服务器,等等)缓存,即使是通常不可缓存的内容。(例如:1.该响应没有max-age指令或Expires消息头;2. 该响应对应的请求方法是 POST 。)
+
表明响应可以被任何对象(包括:发送请求的客户端,代理服务器,等等)缓存,即使是通常不可缓存的内容。(例如:1.该响应没有max-age指令或Expires消息头;2. 该响应对应的请求方法是 POST 。)
private
表明响应只能被单个用户缓存,不能作为共享缓存(即代理服务器不能缓存它)。私有缓存可以缓存响应内容,比如:对应用户的本地浏览器。
no-cache
diff --git a/files/zh-cn/web/http/headers/dpr/index.html b/files/zh-cn/web/http/headers/dpr/index.html index d4d577bdc0..d7a74581a2 100644 --- a/files/zh-cn/web/http/headers/dpr/index.html +++ b/files/zh-cn/web/http/headers/dpr/index.html @@ -5,7 +5,7 @@ translation_of: Web/HTTP/Headers/DPR ---
{{HTTPSidebar}}{{securecontext_header}}{{SeeCompatTable}}
-

DPR请求头是“ 客户端提示”消息头,它代表客户端设备的像素比({{Glossary("DPR")}}),该比例是与每个CSS像素相对应的物理设备像素的数量。

+

DPR请求头是“ 客户端提示”消息头,它代表客户端设备的像素比({{Glossary("DPR")}}),该比例是与每个CSS像素相对应的物理设备像素的数量。

diff --git a/files/zh-cn/web/http/headers/set-cookie/samesite/index.html b/files/zh-cn/web/http/headers/set-cookie/samesite/index.html index 76bf8e9146..ca24138993 100644 --- a/files/zh-cn/web/http/headers/set-cookie/samesite/index.html +++ b/files/zh-cn/web/http/headers/set-cookie/samesite/index.html @@ -25,7 +25,7 @@ translation_of: Web/HTTP/Headers/Set-Cookie/SameSite

以前 None 是默认值,但最近的浏览器版本将 Lax 作为默认值,以便对某些类型的跨站请求伪造 ({{Glossary("CSRF")}}) 攻击具有相当强的防御能力。

-

使用 None 时,需在最新的浏览器版本中使用 Secure 属性。更多信息见下文。

+

使用 None 时,需在最新的浏览器版本中使用 Secure 属性。更多信息见下文。

针对常见警告信息的解决办法

@@ -46,7 +46,7 @@ translation_of: Web/HTTP/Headers/Set-Cookie/SameSite
Set-Cookie: flavor=choco; SameSite=None; Secure
-

Secure cookie仅通过HTTPS协议加密发送到服务器。请注意,不安全站点(http:)无法使用 Secure 指令设置cookies。

+

Secure cookie仅通过HTTPS协议加密发送到服务器。请注意,不安全站点(http:)无法使用 Secure 指令设置cookies。

没有 SameSite 属性的Cookies默认为 SameSite=Lax

-- cgit v1.2.3-54-g00ecf