mirror of
https://github.com/nginx/nginx.git
synced 2024-12-03 04:39:00 +08:00
Upstream: Cache-Control preferred over Expires.
Not really a strict check (as X-Accel-Expires might be ignored or contain invalid value), but quite simple to implement and better than what we have now.
This commit is contained in:
parent
1029607ac9
commit
def37d254a
@ -3656,7 +3656,7 @@ ngx_http_upstream_process_cache_control(ngx_http_request_t *r,
|
||||
return NGX_OK;
|
||||
}
|
||||
|
||||
if (r->cache->valid_sec != 0) {
|
||||
if (r->cache->valid_sec != 0 && u->headers_in.x_accel_expires != NULL) {
|
||||
return NGX_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user