From abe471eff49ca6c4c1a080b4045da496ca1414d9 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Fri, 24 Jul 1998 05:50:51 +0000 Subject: [PATCH] ENTRY_SPECIAL objects must always be cache hits --- src/client_side.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/client_side.cc b/src/client_side.cc index d4c485a1c8..31aed88c41 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.364 1998/07/22 20:37:09 wessels Exp $ + * $Id: client_side.cc,v 1.365 1998/07/23 23:50:51 wessels Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -1606,6 +1606,10 @@ clientProcessRequest2(clientHttpRequest * http) storeRelease(e); http->entry = NULL; return LOG_TCP_MISS; + } else if (EBIT_TEST(e->flag, ENTRY_SPECIAL)) { + /* Special entries are always hits, no matter what the client says */ + http->entry = e; + return LOG_TCP_HIT; } else if (EBIT_TEST(r->flags, REQ_NOCACHE)) { /* NOCACHE should always eject a negative cached object */ if (EBIT_TEST(e->flag, ENTRY_NEGCACHED)) -- 2.47.3