From: wessels <> Date: Mon, 1 Apr 1996 11:51:33 +0000 (+0000) Subject: misc adjustments X-Git-Tag: SQUID_3_0_PRE1~6320 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=87c2a2e33bf7e3ddae4e39c674a9923cf641b574;p=thirdparty%2Fsquid.git misc adjustments --- diff --git a/src/mime.cc b/src/mime.cc index edcb12aa0a..2bbf47b01d 100644 --- a/src/mime.cc +++ b/src/mime.cc @@ -1,5 +1,5 @@ -/* $Id: mime.cc,v 1.8 1996/04/01 04:31:29 wessels Exp $ */ +/* $Id: mime.cc,v 1.9 1996/04/01 04:51:33 wessels Exp $ */ #include "squid.h" #include "mime_table.h" @@ -45,10 +45,15 @@ int mime_refresh_request(mime) char *mime; { char *pr = NULL; - if ((pr = mime_get_header(mime, "pragma")) == NULL) + if (mime == NULL) return 0; - if (strstr(pr, "no-cache")) /* why strstr and not strcmp? -DPW */ + if (mime_get_header("If-Modified-Since")) return 1; + if ((pr = mime_get_header(mime, "pragma"))) { + /* why strstr and not strcmp? -DPW */ + if (strstr(pr, "no-cache")) + return 1; + } return 0; }