Mercurial > hg > nginx
comparison src/http/ngx_http_cache.h @ 172:caa57ddf6d77
nginx-0.0.1-2003-11-04-01:20:44 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 03 Nov 2003 22:20:44 +0000 |
parents | aff0e5d32af8 |
children | 4fb2a2cff023 |
comparison
equal
deleted
inserted
replaced
171:aff0e5d32af8 | 172:caa57ddf6d77 |
---|---|
7 | 7 |
8 | 8 |
9 typedef struct { | 9 typedef struct { |
10 time_t expires; | 10 time_t expires; |
11 time_t last_modified; | 11 time_t last_modified; |
12 time_t date; | |
12 off_t length; | 13 off_t length; |
13 } ngx_http_cache_header_t; | 14 } ngx_http_cache_header_t; |
14 | 15 |
15 | 16 |
16 typedef struct { | 17 typedef struct { |
42 ngx_http_cache_header_t header; | 43 ngx_http_cache_header_t header; |
43 ssize_t header_size; | 44 ssize_t header_size; |
44 } ngx_http_cache_ctx_t; | 45 } ngx_http_cache_ctx_t; |
45 | 46 |
46 | 47 |
47 #define NGX_STALE 1 | 48 #define NGX_HTTP_CACHE_STALE 1 |
49 #define NGX_HTTP_CACHE_AGED 2 | |
48 | 50 |
49 | 51 |
50 int ngx_http_cache_get_file(ngx_http_request_t *r, ngx_http_cache_ctx_t *ctx); | 52 int ngx_http_cache_get_file(ngx_http_request_t *r, ngx_http_cache_ctx_t *ctx); |
51 int ngx_http_cache_update_file(ngx_http_request_t *r,ngx_http_cache_ctx_t *ctx, | 53 int ngx_http_cache_update_file(ngx_http_request_t *r,ngx_http_cache_ctx_t *ctx, |
52 ngx_str_t *temp_file); | 54 ngx_str_t *temp_file); |