On 12.04.06 18:34, Ramprasad wrote:
>    I am using a special installation of squid proxy for my antispam 
> project.  This is used only by machines and not real users. 
> 
>     Caching is very important so that the retrieval time is reduced. 
> But the problem is most of the pages linked by the spammers have a 
> "pragma nocache", so squid tries to fetch the dumb page every time. How 
> do I prevent that. Can I configure squid to always cache pages, and 
> serve pages from cache only. 

If I wanted an antivirus/antispam project, I would put the filter
BEFORE the squid, so squid would just see and cache its results.
Spam pages would be replaced by small/short notification "this is spam" or
probably by a redirect to such notification. This notification/redirect
could be cached to prevent spam-checking the same page again
-- 
Matus UHLAR - fantomas, [EMAIL PROTECTED] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
REALITY.SYS corrupted. Press any key to reboot Universe.

Reply via email to