Hi Christos,
You have solved my problem!
Thank you everybody here.
Cheers,
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
>
>