summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_file_cache.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-09-07 09:49:51 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-09-07 09:49:51 +0000
commitbfb2447d15e3a3a5076dda1963a27a0a2b61e88e (patch)
tree828f9159e95c000ecbe698b965a8c678ea06275e /src/http/ngx_http_file_cache.c
parentc8cee16ad74140424eb9758e1bc9dae35f3e5ef2 (diff)
downloadnginx-bfb2447d15e3a3a5076dda1963a27a0a2b61e88e.tar.gz
nginx-bfb2447d15e3a3a5076dda1963a27a0a2b61e88e.tar.bz2
merge r2953, r2958, r3084:
*) $upstream_cache_status *) clean cache updating state if a response has uncacheable code or cache prohibitive headers
Diffstat (limited to 'src/http/ngx_http_file_cache.c')
-rw-r--r--src/http/ngx_http_file_cache.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/http/ngx_http_file_cache.c b/src/http/ngx_http_file_cache.c
index 323358742..8e908a1dc 100644
--- a/src/http/ngx_http_file_cache.c
+++ b/src/http/ngx_http_file_cache.c
@@ -35,6 +35,15 @@ static ngx_int_t ngx_http_file_cache_delete_file(ngx_tree_ctx_t *ctx,
ngx_str_t *path);
+ngx_str_t ngx_http_cache_status[] = {
+ ngx_string("MISS"),
+ ngx_string("EXPIRED"),
+ ngx_string("STALE"),
+ ngx_string("UPDATING"),
+ ngx_string("HIT")
+};
+
+
static u_char ngx_http_file_cache_key[] = { LF, 'K', 'E', 'Y', ':', ' ' };