Skip to content

negative_revalidating_lifetime seems not respected #7425

@lukenowak

Description

@lukenowak

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions