<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><span style="color: rgb(68, 68, 68); font-size: 15px; line-height: 21.299999237060547px; background-color: rgb(255, 255, 255);">Hi,</span><br style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><br style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><span style="color: rgb(68, 68, 68); font-size: 15px; line-height: 21.299999237060547px; background-color: rgb(255, 255, 255);">I am using squid + c-icap for content adaptation.</span><br style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><span style="color: rgb(68, 68, 68); font-size: 15px; line-height: 21.299999237060547px; background-color: rgb(255, 255, 255);">I noticed that when squid is able to find the requested html page in its cache, it does the following;</span><br style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><br style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><span style="color: rgb(68, 68, 68); font-size: 15px; line-height: 21.299999237060547px; background-color: rgb(255, 255, 255);">1) It does not send an http get request to the external web server since the html is already in the cache. I think this makes sense.</span><br style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><span style="color: rgb(68, 68, 68); font-size: 15px; line-height: 21.299999237060547px; background-color: rgb(255, 255, 255);">2) It does NOT send an icap RESPMOD request to the Icap server. I was expecting it to still send the icap request to the icap server in this case.</span><br style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><br style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><span style="color: rgb(68, 68, 68); font-size: 15px; line-height: 21.299999237060547px; background-color: rgb(255, 255, 255);">Is there a way to tell squid to send the Respmod request to the icap server in the case when the requested html page is found in the cache?</span><br style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><br style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><span style="color: rgb(68, 68, 68); font-size: 15px; line-height: 21.299999237060547px; background-color: rgb(255, 255, 255);">By the way, I am verifying that the object is found in the cache since I see the following line in squid's access.log:</span><br style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><span style="color: rgb(68, 68, 68); font-size: 15px; line-height: 21.299999237060547px; background-color: rgb(255, 255, 255);">1448901021.850 96 10.0.0.9 TCP_MEM_HIT/200 315485 GET </span><a href="http://192.168.0.12/poems.html" target="" style="line-height: 21.299999237060547px; color: rgb(0, 104, 207); cursor: pointer; font-size: 15px; background-color: rgb(255, 255, 255);">http://192.168.0.12/poems.html</a><span style="color: rgb(68, 68, 68); font-size: 15px; line-height: 21.299999237060547px; background-color: rgb(255, 255, 255);"> - HIER_NONE/- text/html</span><br style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><br style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><span style="color: rgb(68, 68, 68); font-size: 15px; line-height: 21.299999237060547px; background-color: rgb(255, 255, 255);">Also, here is how my squid configuration looks like:</span><br style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><br style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><span style="color: rgb(68, 68, 68); font-size: 15px; line-height: 21.299999237060547px; background-color: rgb(255, 255, 255);">icap_enable on</span><br style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><span style="color: rgb(68, 68, 68); font-size: 15px; line-height: 21.299999237060547px; background-color: rgb(255, 255, 255);">icap_send_client_ip on</span><br style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><span style="color: rgb(68, 68, 68); font-size: 15px; line-height: 21.299999237060547px; background-color: rgb(255, 255, 255);">icap_send_client_username on</span><br style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><span style="color: rgb(68, 68, 68); font-size: 15px; line-height: 21.299999237060547px; background-color: rgb(255, 255, 255);">icap_client_username_header X-Client-Username</span><br style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><span style="color: rgb(68, 68, 68); font-size: 15px; line-height: 21.299999237060547px; background-color: rgb(255, 255, 255);">icap_service service_req_14 reqmod_precache bypass=on icap://127.0.0.1:1344/request_check</span><br style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><span style="color: rgb(68, 68, 68); font-size: 15px; line-height: 21.299999237060547px; background-color: rgb(255, 255, 255);">adaptation_access service_req_14 allow all</span><br style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><span style="color: rgb(68, 68, 68); font-size: 15px; line-height: 21.299999237060547px; background-color: rgb(255, 255, 255);">icap_service service_resp_14 respmod_precache bypass=off icap://127.0.0.1:1344/response_check</span><br style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><span style="color: rgb(68, 68, 68); font-size: 15px; line-height: 21.299999237060547px; background-color: rgb(255, 255, 255);">adaptation_access service_resp_14 allow all</span><br style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><br style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><span style="color: rgb(68, 68, 68); font-size: 15px; line-height: 21.299999237060547px; background-color: rgb(255, 255, 255);">Thanks,</span><br style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><span style="color: rgb(68, 68, 68); font-size: 15px; line-height: 21.299999237060547px; background-color: rgb(255, 255, 255);">Giray</span><br style="line-height: 21.299999237060547px; color: rgb(68, 68, 68); font-size: 15px; background-color: rgb(255, 255, 255);"><div><span style="color: rgb(68, 68, 68); font-size: 15px; line-height: 21.299999237060547px; background-color: rgb(255, 255, 255);"><br></span></div> </div></body>
</html>