<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Start from here:<br>
<br>
<a class="moz-txt-link-freetext" href="http://wiki.squid-cache.org/ConfigExamples#Content_Adaptation_features">http://wiki.squid-cache.org/ConfigExamples#Content_Adaptation_features</a><br>
<br>
<div class="moz-cite-prefix">12.02.15 11:54, Luis Miguel Silva
пишет:<br>
</div>
<blockquote
cite="mid:CA+suCFjJ=04g3VFK2yYDEm2ye6DYsvPDixG5=wF=gNu1Ee6+Bg@mail.gmail.com"
type="cite">
<div dir="ltr">Dear all,
<div><br>
</div>
<div>This might not be the ideal place to ask questions about
e-cap but, since e-cap's mailing list is not working, I
decided to ask my question here.</div>
<div><br>
</div>
<div>So, here goes:</div>
<div>- <b>My ecap service only seems to work on some pages</b>...</div>
<div>-- I've added the following configuration to my squid.conf:</div>
<div>
<div>loadable_modules /usr/local/lib/ecap_adapter_modifying.so</div>
<div>ecap_enable on</div>
<div>ecap_service ecapModifier respmod_precache 0 ecap://<a
moz-do-not-send="true"
href="http://e-cap.org/ecap/services/sample/modifying">e-cap.org/ecap/services/sample/modifying</a>
victim=professor replacement=teacher<br>
</div>
<div>adaptation_access ecapModifier allow all</div>
</div>
<div>-- unfortunately, it <b>only seems to work some times</b>
(e.g. for instance, it works on <a moz-do-not-send="true"
href="http://www.pedagua.com/lmsilva/">this one</a> [<a
moz-do-not-send="true"
href="http://www.pedagua.com/lmsilva/">http://www.pedagua.com/lmsilva/</a>]
but not on <a moz-do-not-send="true"
href="http://en.wikipedia.org/wiki/Professor">this one</a> [<a
moz-do-not-send="true"
href="http://en.wikipedia.org/wiki/Professor]">http://en.wikipedia.org/wiki/Professor]</a>).</div>
<div>-- <b>any idea on how I can debug why? access_log and
cache.log aren't very helpful.</b></div>
<div><br>
</div>
<div>- <b>Does squid obey any specific order between ICAP and
E-CAP calls?</b></div>
<div>-- for instance, if the E-CAP module changes the content,
will the ICAP service receive the changed content OR the
original content? <br>
</div>
</div>
</blockquote>
As you configured.<br>
<blockquote
cite="mid:CA+suCFjJ=04g3VFK2yYDEm2ye6DYsvPDixG5=wF=gNu1Ee6+Bg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>-- <b>does ecap and icap directive order in squid.conf
matter?</b></div>
</div>
</blockquote>
No.<br>
<blockquote
cite="mid:CA+suCFjJ=04g3VFK2yYDEm2ye6DYsvPDixG5=wF=gNu1Ee6+Bg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><br>
</div>
<div>- <b>Is each ecap_service loaded on each page load?</b></div>
</div>
</blockquote>
No. Just one time, when Squid starts.<br>
<blockquote
cite="mid:CA+suCFjJ=04g3VFK2yYDEm2ye6DYsvPDixG5=wF=gNu1Ee6+Bg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>-- Or does it preload a couple of ecap_services and keep
using those over and over again (just like it does with c-icap
and redirect_programs?)</div>
<div>-- I can see each ecap module implements configure,
reconfigure, start, stop and retire methods so...it SHOULD be
possible to preload the script and just call reconfigure on
each call. What does Squid do?</div>
<div><br>
</div>
<div>p.s. I'm using squid 3.4.9 (compiled from source), with
libecap 0.2 and I'm using the ecap adapter sample package
v0.2.1.<br>
</div>
</div>
</blockquote>
Once more - it is strictly recommended to upgrade to last Squid
version, etc.etc., blah-blah-blah....<br>
<blockquote
cite="mid:CA+suCFjJ=04g3VFK2yYDEm2ye6DYsvPDixG5=wF=gNu1Ee6+Bg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><br>
</div>
<div>Thank you,</div>
<div>Luis</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
squid-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squid-cache.org/listinfo/squid-users">http://lists.squid-cache.org/listinfo/squid-users</a>
</pre>
</blockquote>
<br>
</body>
</html>