ChinaUnix.net
相关文章推荐:

nginx faviconico Expires headers

本帖最后由 娱乐随你 于 2010-02-12 13:22 编辑 [code]server { listen 80; server_name www.xxx.com xxx.com; index index.html index.php index.htm; access_log off; charset utf8; root /var/www/xxx.com; if ($host !~ "^www\.xxx\.com$") { rewrite ^(.*) http://www.xxx.com$1 permanent; } location ~* \.(js|css|jpg|jpeg|gif|png)$ { root /var/www/xxx.com; expires 3d; #break; } location ~* \.(html)...

by 娱乐随你 - Linux新手园地 - 2010-02-12 13:18:52 阅读(2407) 回复(0)

相关讨论

location /ep/ { alias /usr/local/nginx-0.7.62/html/; break; } location /zh_cn/ { alias /wwwtest/; } location ~* \.(gif|jpg|png|js|css|swf)$ { expires 30m; access_log off; ...

by gjw_apparitor - 服务器应用 - 2011-09-15 17:02:55 阅读(4588) 回复(1)

请问: nginx 里 proxy_cache_valid 200 302 12h; expires 1d 同时设置了,有什么区别?

by 小兔怪怪 - 服务器应用 - 2013-01-12 19:50:35 阅读(3303) 回复(1)

Etag和expires 题记:本文对页面中Etag和expires标识处理,使得页面更加有效被Cache。 原版来源: http://phaedo.cx/archives/2007/0 ... pache-and-lighttpd/ 摘要 1、Etag和expires中Client 端Http Request Header及Server端Http Reponse Header工作原理。 2、静态下Apache、Lighttpd和nginx中Etag和expires配置 3、非实时交互动态页面中Etag和expires处理 在客户端通过浏览器发出第一次请求某一个URL时,根据 HTTP 协议...

by 凝望长空 - 监控及自动化运维技术 - 2012-01-12 15:46:45 阅读(1258) 回复(1)

expires header有谁研究过?

by hiller1 - 服务器应用 - 2008-08-26 13:37:09 阅读(1306) 回复(0)

php的代码如下:[code] $url = 'http://localhost/php/ok.html'; $headInf = get_headers($url, 1); print_r($headInf); [/code]输出: Array ( [0] => HTTP/1.1 200 OK [Date] => Sun, 11 Mar 2012 13:23:09 GMT [Server] => Apache/2.2.20 (Ubuntu) [Last-Modified] => Sat, 25 Feb 2012 14:27:49 GMT [ETag] => "81135-4-4b9caae86db3a" [Accept-Ranges] => bytes [Content-Length] => 4 [Va...

by bellszhu - PHP - 2012-03-12 15:43:43 阅读(1064) 回复(1)

the link is:http://kerneltrap.org/node/6536 Posted by Jeremy on 星期五, 四月 28, 2006 - 08:58 David Woodhouse offered a collection of patches aimed at cleaning up Linux kernel headers, explaining that he maintains the Fedora glibc-kernheaders package and has found the process of syncing with the latest kernel to be unnecessarily tedious. Linus Torvalds acknowledged the effort, noting that he ...

by 1jjk - 内核/嵌入技术 - 2006-05-18 22:20:18 阅读(1012) 回复(1)

the link is:http://kerneltrap.org/node/6536 Posted by Jeremy on 星期五, 四月 28, 2006 - 08:58 David Woodhouse offered a collection of patches aimed at cleaning up Linux kernel headers, explaining that he maintains the Fedora glibc-kernheaders package and has found the process of syncing with the latest kernel to be unnecessarily tedious. Linus Torvalds acknowledged the effort, noting that he ...

by 1jjk - 内核源码 - 2006-05-18 22:20:18 阅读(1702) 回复(1)

怎样查看一个网站的headers信息。如下 A Sample HTTP Response headers with Cache-Control and expires: HTTP/1.1 200 OK Date: Fri, 30 Oct 1998 13:19:41 GMT Server: Apache/1.3.3 (Unix) Cache-Control: max-age=3600, must-revalidate expires: Fri, 30 Oct 1998 14:19:41 GMT Last-Modified: Mon, 29 Jun 1998 02:28:12 GMT ETag: "3e86-410-3596fbbc" Content-Length: 1040 Content-Type: text/html

by JonZhao - 服务器应用 - 2006-06-18 23:01:13 阅读(2070) 回复(10)

The 18 standard headers are: ; -- for enforcing assertions when functions execute ; -- for classifying characters ; -- for testing error codes reported by library functions ; -- for testing floating-point type properties ; -- for programming in ISO 646 variant character sets ; -- for testing integer type properties ; -- for adapti...

by yuxq - C/C++ - 2003-09-08 14:42:16 阅读(707) 回复(0)

nginx安装配置stub_status nginx中的stub_status模块主要用于查看nginx的一些状态信息. 本模块默认是不会编译进nginx的,如果你要使用该模块,则要在编译安装nginx时指定: ./configure –with-http_stub_status_module 查看已安装的 nginx 是否包含 stub_status 模块 #/usr/local/nginx/sbin/nginx -V nginx version: nginx/1.0.5 built by gcc 5.4.6 20120404 (Centos 6.2) configure arguments: --user=ng...

by osapub - OSA开源监控 - 2013-05-16 16:27:56 阅读(1124) 回复(0)