diff options
| author | Maxim Dounin <mdounin@mdounin.ru> | 2014-06-26 02:28:23 +0400 |
|---|---|---|
| committer | Maxim Dounin <mdounin@mdounin.ru> | 2014-06-26 02:28:23 +0400 |
| commit | b8129616776a6973b314f71901420ad6d38aa579 (patch) | |
| tree | 4a33c5f901103c547bf9e697833c63355fec77fb /src/http/ngx_http_cache.h | |
| parent | c2e49a4196749676ccea31ae645c5d3eb4408520 (diff) | |
| download | nginx-b8129616776a6973b314f71901420ad6d38aa579.tar.gz nginx-b8129616776a6973b314f71901420ad6d38aa579.tar.bz2 | |
Cache: ETag now saved into cache header.
Diffstat (limited to '')
| -rw-r--r-- | src/http/ngx_http_cache.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/http/ngx_http_cache.h b/src/http/ngx_http_cache.h index 1a3117adb..1cfd9fe84 100644 --- a/src/http/ngx_http_cache.h +++ b/src/http/ngx_http_cache.h @@ -24,8 +24,9 @@ #define NGX_HTTP_CACHE_SCARCE 8 #define NGX_HTTP_CACHE_KEY_LEN 16 +#define NGX_HTTP_CACHE_ETAG_LEN 42 -#define NGX_HTTP_CACHE_VERSION 1 +#define NGX_HTTP_CACHE_VERSION 2 typedef struct { @@ -69,6 +70,8 @@ struct ngx_http_cache_s { time_t last_modified; time_t date; + ngx_str_t etag; + size_t header_start; size_t body_start; off_t length; @@ -107,6 +110,8 @@ typedef struct { u_short valid_msec; u_short header_start; u_short body_start; + u_char etag_len; + u_char etag[NGX_HTTP_CACHE_ETAG_LEN]; } ngx_http_file_cache_header_t; |
