Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
a6aff81a
Commit
a6aff81a
authored
Sep 25, 2014
by
东方孤思子(Paris·QianSen)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update docs.
parent
10d08268
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
README.md
docs/guide-zh-CN/README.md
+1
-0
caching-http.md
docs/guide-zh-CN/caching-http.md
+2
-1
No files found.
docs/guide-zh-CN/README.md
View file @
a6aff81a
...
...
@@ -139,6 +139,7 @@ RESTful Web 服务
-----
*
**编撰中**
[
概述
](
test-overview.md
)
*
**编撰中**
[
搭建测试环境
](
test-endvironment-setup.md
)
*
**编撰中**
[
单元测试
](
test-unit.md
)
*
**编撰中**
[
功能测试
](
test-functional.md
)
*
**编撰中**
[
验收测试
](
test-acceptance.md
)
...
...
docs/guide-zh-CN/caching-http.md
View file @
a6aff81a
...
...
@@ -86,7 +86,8 @@ ETag 相比 `Last-Modified` 能实现更复杂和更精确的缓存策略。例
复杂的 Etag 生成种子可能会违背使用
`HttpCache`
的初衷而引起不必要的性能开销,因为响应每一次请求都需要重新计算 Etag。请试着找出一个最简单的表达式去触发 Etag 失效。
> 注意:为了遵循 [RFC 2616, section 13.3.4(HTTP 协议)](http://tools.ietf.org/html/rfc2616#section-13.3.4),如果同时配置了 `ETag` 和 `Last-Modified` 头,`HttpCache` 将会同时发送它们,因此它们将被同时用于客户端的缓存失效校验。
> 注意:为了遵循 [RFC 7232(HTTP 1.1 协议)](http://tools.ietf.org/html/rfc7232#section-2.4),如果同时配置了 `ETag` 和 `Last-Modified` 头,`HttpCache` 将会同时发送它们。并且如果客户端同时发送 `If-None-Match` 头和 `If-Modified-Since` 头,则只有前者会被接受。
## `Cache-Control` 头 <a name="cache-control"></a>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment