简体   繁体   English

http标题影响缓存 - 教程/文档

[英]http Headers influencing Caching - Tutorial / Documentation

Can somebody point me to decent tutorial explaining the various http-header settings influencing caching (for proxies, the browser, their play-together and possible quirks in browsers and caching engines) 有人可以指点我体面的教程解释影响缓存的各种http-header设置(代理,浏览器,它们在一起以及浏览器和缓存引擎中的可能怪癖)

I think it is a somewhat neglected feature --- at least I do not make use of it. 我认为这是一个有点被忽视的特征 - 至少我没有利用它。 Caching CSS, JS and pictures (pretty much everything coming from the cookieless domain) should speed up things a bit. 缓存CSS,JS和图片(几乎所有来自无cookie域的内容)都应该加快一些速度。

Caching tutorial -- This is pretty good article describing HTTP caching process and related headers. 缓存教程 - 这是一篇非常好的文章,描述了HTTP缓存过程和相关标头。

There is good article about Optimizing cache at Let's make the web faster website. 有一篇关于优化缓存的好文章让我们让网站变得更快 All articles there are worth checking out. 所有文章都值得一试。

To speed up a things, you can also: 为了加快速度,您还可以:

  • reduce number of requests needed to load your page 减少加载页面所需的请求数
  • compress for your HTTP responses 压缩您的HTTP响应
  • combine your CSS/JS files together, and minimize them, for example by using YUI Compressor or Google Closure Compiler 将CSS / JS文件组合在一起,并最小化它们,例如使用YUI CompressorGoogle Closure Compiler
  • put small images into one big bundle so that they are loaded using single request ( online tool for putting images together) 将小图像放入一个大包中,以便使用单个请求加载它们(将图像放在一起的在线工具
  • Implement SPDY support on your server -- that's probably not something you'll do, but it's interesting idea worth mentioning 在您的服务器上实施SPDY支持 - 这可能不是您要做的事情,但值得一提的是有趣的想法

在这里你可以找到规格,你可以参考。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM