Having configuration:
CONFIG proxy.config.http.negative_revalidating_enabled INT 1
CONFIG proxy.config.http.negative_revalidating_lifetime INT 10
I have such scenario:
- with executing
GET /test HTTP/1.1 origin replies HTTP/1.1 200 OK with header: Cache-Control: max-age=11, public and some content, I see TCP_MISS/200 in squid.log, I am happy with the reply
- then I configured origin to reply
HTTP/1.1 503 Service Unavailable with cache-control: no-cache
- did again
GET /test HTTP/1.1, got proper 200 reply from cache, in squid.log I see TCP_REFRESH_MISS/200
sleep 15 (more then negative_revalidating_lifetime)
- did again
GET /test HTTP/1.1, got:
- surprising 200 reply
- expected: 503 code from the origin
- in
squid.log I see TCP_REFRESH_MISS/200
It happens with 7.1.11, 8.1.0 and 8.1.1.
Note: Same happens if origin is just down, where I'd expect 5xx code from trafficserver after waiting for enough of time.
Having configuration:
I have such scenario:
GET /test HTTP/1.1origin repliesHTTP/1.1 200 OKwith header:Cache-Control: max-age=11, publicand some content, I seeTCP_MISS/200insquid.log, I am happy with the replyHTTP/1.1 503 Service Unavailablewithcache-control: no-cacheGET /test HTTP/1.1, got proper 200 reply from cache, insquid.logI seeTCP_REFRESH_MISS/200sleep 15(more thennegative_revalidating_lifetime)GET /test HTTP/1.1, got:squid.logI seeTCP_REFRESH_MISS/200It happens with 7.1.11, 8.1.0 and 8.1.1.
Note: Same happens if origin is just down, where I'd expect 5xx code from trafficserver after waiting for enough of time.