Re: can I remove cache feature from Squid or how can I make the time of cache is very short

From: JXu <forrestxu@dont-contact.us>
Date: Sun, 30 Sep 2007 08:14:17 -0700 (PDT)

Hi Amos

Thank you for your reply. I believe this is good solution.
But after I made the change below in my custom web page:

 snprintf(buf, 128, "X-Infection-Found: Type=0; Resolution=2; Threat=URL;");
 buf[127] = '\0';
 ci_request_add_xheader(req, buf);
snprintf(buf, 128, "Cache-Control:
cache-request-directive=no-cache;cache-response-directive=no-cache;");
 // i tested snprintf(buf, 128, "Cache-Control:
//cache-request-directive='no-cache';cache-response-directive='no-cache';");
also.
              buf[127] = '\0';
              ci_request_add_xheader(req, buf);
         snprintf(buf, 128, "Expires: -1;");
              buf[127] = '\0';
              ci_request_add_xheader(req, buf);

my custom web page is still kept displaying . Any comments?

Thank you.

Forrest

Amos Jeffries-2 wrote:
>
> JXu wrote:
>> Hi
>>
>> Please help me to understand the question described as below:
>>
>> I added a service in c-icap to block some URLs(for example,
>> www.yahoo.com)
>> and I did it. It displays permission denied web page (designed by me)
>> when
>> the user enters these URLs.
>>
>> After I made www.yahoo.com available, it does not display real
>> www.yahoo.com
>> web page. Instead, it displays permission denied web page when I enter
>> www.yahoo.com. It keeps displaying permission denied web page until
>> several
>> minutes are passed.
>>
>> Is it cache feature from Squid? Can I remove cache feature from Squid or
>> make the time of cache is very short. I hope after I made www.yahoo.com
>> available, I can see real www.yahoo.com web page in short time and I do
>> not
>> want to see permission denied web page for several minutes.
>>
>> Thank you in advance.
>> Forrest
>
> Have your custom ICAP service set the cache-control headers properly in
> the custom page. Expires: with the current time or a few seconds in the
> future should do it.
>
> Amos
>
>

-- 
View this message in context: http://www.nabble.com/can-I-remove-cache-feature-from-Squid-or-how-can-I-make-the-time-of-cache-is-very-short-tf4542212.html#a12966676
Sent from the Squid - Development mailing list archive at Nabble.com.
Received on Sun Sep 30 2007 - 09:14:23 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Oct 01 2007 - 12:00:05 MDT