惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Secure Thoughts
罗磊的独立博客
T
The Blog of Author Tim Ferriss
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
Last Week in AI
Last Week in AI
美团技术团队
Google Online Security Blog
Google Online Security Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
D
Docker
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
酷 壳 – CoolShell
酷 壳 – CoolShell
小众软件
小众软件
月光博客
月光博客
L
LINUX DO - 最新话题
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
W
WeLiveSecurity
H
Heimdal Security Blog
Vercel News
Vercel News
SecWiki News
SecWiki News
Forbes - Security
Forbes - Security
Blog — PlanetScale
Blog — PlanetScale
Google DeepMind News
Google DeepMind News
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
www.infosecurity-magazine.com
www.infosecurity-magazine.com
TaoSecurity Blog
TaoSecurity Blog
T
Troy Hunt's Blog
A
About on SuperTechFans
C
Check Point Blog
S
Security Affairs
Hacker News - Newest:
Hacker News - Newest: "LLM"
AI
AI
WordPress大学
WordPress大学
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Help Net Security
Help Net Security
博客园_首页
The Last Watchdog
The Last Watchdog
S
SegmentFault 最新的问题
Hugging Face - Blog
Hugging Face - Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
Engineering at Meta
Engineering at Meta
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
I
Intezer
K
Kaspersky official blog
M
MIT News - Artificial intelligence
J
Java Code Geeks
G
GRAHAM CLULEY
P
Palo Alto Networks Blog

博客园 - 三体星

5.12 纪念 同志们,我搬家了:oakley.yo2.cn 有点累 3/9[Update] 2/19 2/12 2.5 01/15 doubanclaim7506ce0560ac4303 01/04 00/00 11/21-真正的旅行 11/21 12/21 12/08 12/07 12/06 源氏物语 11/02
3/23[关于浏览器缓存] - 三体星 - 博客园
三体星 · 2009-03-23 · via 博客园 - 三体星

功能:根据Yslow原则,缓存合适使用,可以大大提高速度。
使用Http头:

Cache-Control 用于控制HTTP缓存
Expires 表示存在时间

设置格式如下:

<meta http-equiv="Cache-Control"
content="max-age=7200" />
<meta http-equiv="Expires" content="Mon, 20 Jul 2009
23:00:00 GMT" />

在servlet中设置:

response.setContentType("application/octet-stream");

response.setHeader("Cache-Control","max-age=300");
setDateHeader
setIntHeadr

现象1:在Firefox下,刷新的时候,对于非静态地址,都会重新加载,返回200,静态内容返回304,是检测是否更新的。而在地址栏中回车,以及后退的时候,对于缓存的内容不会重新加载。IE下未测试。

-----------------------------
http://www.w3.org/Protocols/
http://www.ietf.org/internet-drafts/draft-ietf-httpbis-p6-cache-06.txt