Introduction to http cache (From a Chinese blog)

引言 通过网络获取内容既缓慢,成本又高:大的响应需要在客户端和服务器之间进行多次往返通信,这拖延了浏览器可以使用和处理内容的时间,同时也增加了访问者的数据成本。因此,缓存和重用以前获取的资源的能力成为优化性能很关键的一个方面。 序 本文用于解决以下六个疑问。 与缓存相关的HTTP首部字段主要有哪些? 这些HTTP首部字段之间的联系与区别? HTTP缓存首部字段的优先级? HTTP缓存首部字段的特点与局限性? 用户不同的页面刷新行为的差别? 在实践中我们该用哪些报文头来控制缓存呢? 文中使用的1.html以及doge.png如下所示 <!DOCTYPE html> <html> <head> <meta charset=”utf-8″> <title>缓存控制测试</title> </head> <body> […]

Virtual environment

What is Virtualenv? A Virtual Environment, put simply, is an isolated working copy of Python which allows you to work […]

Proxy setting on Windows

      Secure the Proxy Settings After you enable the proxy settings, you should disable users’ ability to change […]

Integrate Squid with AD

We need to install a couple of packages first: yum install ntp* -y vi /etc/ntp.conf Find the lines start with server, […]

Git with bitbucket or GitHub

I will use Git with bitbucket for version management of the configuration files, and some scripts, so in my scenario, […]