Wednesday, December 29, 2010

vim tab 快捷键配置

[cc lang="text"]
map th :tabnext
map tl :tabprev
map tn :tabnew
map td :tabclose[/cc]

Wednesday, December 22, 2010

Nginx上ETag支持

[cc lang="text"]
location ~* ^.+.(gif|jpg|css|js|png)$ {
root /var/web/static;
FileETag on;
etag_format \"%X%X\";
add_header Cache-Control max-age=0;
}
[/cc]
这样就可以返回304啦。