« Return to Thread: can I remove cache feature from Squid or how can I make the time of cache is very short

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

by JXu :: Rate this Message:

Reply to Author | View in Thread


Hi Christos,

You solve my problem.

Thank you for every body here.

Forrest

Christos Tsantilas wrote:

>
> Hi Forest,
>
> The Cache-Control and Expires headers must contained at the headers of the
> http response. The ci_request_add_xheader function you are using adds
> headers to the icap headers response. (the ci_respmod_add_header is the
> function you need ....)
>
> Regards,
>       Christos
>
> PS.
>  For problems related with c-icap better use the c-icap's mailing list:
>      http://sourceforge.net/mailarchive/forum.php?forum_name=c-icap-users
>
>
>> I did the following tests:
>>
>>     snprintf(buf, 128, "Cache-Control: no-cache;");
>> //also    snprintf(buf, 128, "Cache-Control: no-cache max-age=1
>> no-store;");
>> //also  snprintf(buf, 128, "Cache-Control: no-cache, max-age=1,
>> no-store;");
>> //also  snprintf(buf, 128, "Cache-Control: no-cache; max-age=1;
>> no-store;");
>>       buf[127] = '\0';
>>       ci_request_add_xheader(req, buf);
>>  //with or without snprintf(buf, 128, "Expires: Thu, 01 Dec 1994
>> 16:00:00
>> GMT;");
>>   //with or without     buf[127] = '\0';
>>   //with or without         ci_request_add_xheader(req, buf);
>>
>> For all above options I selected my custom web page is still kept
>> displaying
>> .
>> I must be wrong!
>>
>> Any suggestion.
>>
>> Thank you again!
>> Forrest
>>
>>
>
>
>

--
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#a12980520
Sent from the Squid - Development mailing list archive at Nabble.com.

 « Return to Thread: can I remove cache feature from Squid or how can I make the time of cache is very short