
php获取跳转后的真实链接
告别只是另一种体验
专注于前端开发因为专注所以简单
展开
-
php获取跳转后的真实链接
php // echo get_redirect_url('http://www.oschina.net/action/project/go?id=1089&p=home'); //输出结果为:http://code.google.com/android/ function get_redirect_url($url){ $redirect_url = null; $url_p原创 2014-08-08 11:40:55 · 5658 阅读 · 1 评论 -
如何设置max-age或expires来缓存你的站点文件
方法: 详情: Cache-control用于控制HTTP缓存(在HTTP/1.0中可能部分没实现,仅仅实现了Pragma: no-cache)数据包中的格式:Cache-Control: cache-directivecache-directive可以为以下:request时用到:| “no-cache” | “no-store” | “max-age” “=” delta-secon原创 2016-05-28 23:19:24 · 4002 阅读 · 0 评论