mirror of
https://github.com/nginx/nginx.git
synced 2025-01-19 01:42:58 +08:00
Fixed "expires @00h".
This commit is contained in:
parent
249d72b7fb
commit
81b43370d5
@ -253,7 +253,7 @@ ngx_http_set_expires(ngx_http_request_t *r, ngx_http_headers_conf_t *conf)
|
||||
return NGX_ERROR;
|
||||
}
|
||||
|
||||
if (conf->expires_time == 0) {
|
||||
if (conf->expires_time == 0 && conf->expires != NGX_HTTP_EXPIRES_DAILY) {
|
||||
ngx_memcpy(expires->value.data, ngx_cached_http_time.data,
|
||||
ngx_cached_http_time.len + 1);
|
||||
ngx_str_set(&cc->value, "max-age=0");
|
||||
|
Loading…
Reference in New Issue
Block a user