aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_cache.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-11-03 22:20:44 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-11-03 22:20:44 +0000
commitcf80a70e1030f3c12e9b19e34e4f9ee9e2f72629 (patch)
tree0611cee87cc3d27340cff7fc8d324f6f61ad56b7 /src/http/ngx_http_cache.c
parenta1512b1904fc7e3a0a5b99e49cff480085518445 (diff)
downloadnginx-cf80a70e1030f3c12e9b19e34e4f9ee9e2f72629.tar.gz
nginx-cf80a70e1030f3c12e9b19e34e4f9ee9e2f72629.zip
nginx-0.0.1-2003-11-04-01:20:44 import
Diffstat (limited to 'src/http/ngx_http_cache.c')
-rw-r--r--src/http/ngx_http_cache.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/http/ngx_http_cache.c b/src/http/ngx_http_cache.c
index b3a7e46fa..4e7cf0ef8 100644
--- a/src/http/ngx_http_cache.c
+++ b/src/http/ngx_http_cache.c
@@ -80,9 +80,11 @@ ngx_log_debug(r->connection->log, "FILE: %s" _ ctx->file.name.data);
ctx->buf->last += n;
if (ctx->header.expires < ngx_time()) {
- return NGX_STALE;
+ return NGX_HTTP_CACHE_STALE;
}
+ /* TODO: NGX_HTTP_CACHE_AGED */
+
return NGX_OK;
}