成都4月的凌晨在一场暴雨后似乎有些平静,打开电脑敲击键盘,发现网速竟比白天快两倍,难道电信对夜间的P2P封杀了?我想晚上的网路会比白天更快,那是应该没有那么多人看土豆了,Youtobe。
凌晨,安静得那样自然。
Wednesday, April 9, 2008
PHP header work with Squid cache server
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");对于动态页面,则可以直接通过写入HTTP返回的头信息,比如对于新闻首页index.php可以是20分钟,而对于具体的一条新闻页面可能是1天后过期。比如:在php中加入了1个月后过期:
// Expires one month later
header("Expires: " .gmdate ("D, d M Y H:i:s", time() + 3600 * 24 * 30). " GMT");
New theme for blog life!
yeah, update for this post, I choise Binary Moon wordcodess theme. I think it's better than K2 ;)
Tuesday, April 8, 2008
awk url
http://www.grymoire.com/Unix/Awk.html
用grep 的时候可能很慢,是因为使用了utf-8系统环境语言变量,换成C或者en_US就好了,在gzip的使用也可能会遇到类似问题~
用grep 的时候可能很慢,是因为使用了utf-8系统环境语言变量,换成C或者en_US就好了,在gzip的使用也可能会遇到类似问题~
Sunday, April 6, 2008
Squid freenode helper!
hi guys, How to control the cache's life time by urls? such as, if I visit the url "http://example.com/book/123?delcache", my squid will delete the cache of "http://example.com/book/123" web page. id_sonic: write a helper app to do it ie, a snippet of perl that when it sees a URL suffixed fixed with ?delcache, will drop that from the cache oh, thanks. I will try the helper .
Friday, April 4, 2008
Subscribe to:
Posts (Atom)