title: (1.2)雅虎军规-服务器部分 speaker: 刘正午 url: https://github.com/midday/WPO-Yahoo transition: slide3 files: /js/zoom.js theme: moon usemathjax: yes
[slide]
<iframe src="http://ghbtns.com/github-btn.html?user=midday&repo=WPO-Yahoo&type=watch&count-true" allowtransparency="true" frameborder="0" scrolling="0" width="110" height="20" style="width:110px;height:20px; background-color: transparent;"></iframe><iframe src="http://ghbtns.com/github-btn.html?user=midday&repo=WPO-Yahoo&type=fork&count=false" allowtransparency="true" frameborder="0" scrolling="0" width="110" height="20" style="width:110px;height:20px; background-color: transparent;"></iframe><iframe src="http://ghbtns.com/github-btn.html?user=midday&repo=WPO-Yahoo&type=follow&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="170" height="20" style="width:170px;height:20px; background-color: transparent;"></iframe>
[slide]
- 使用 CDN 缓存
- Gzip 压缩传输文件
- 添上 Expires 或者 Cache-Control HTTP 头
- 配置ETags
- 避免空的图片 src
- 尽早 flush 输出
- 对 Ajax 使用 GET 请求
[slide] [magic data-transition="cover-circle"]
====
====
- 用户与服务器的物理距离对响应时间也有影响。把内容部署在多个地理位置分散的服务器上能让用户更快地载入页面。 ====
[slide] [magic data-transition="cover-circle"]
====
[slide] [magic data-transition="cover-circle"]
====
[slide] [magic data-transition="cover-circle"]
====