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
>
>
Received on Mon Oct 01 2007 - 06:16:40 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Oct 30 2007 - 13:00:03 MDT