[squid-users] Re: 2 troubles: ERR-page.gif & wrong expires

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Fri, 25 Jan 2002 00:31:13 +0100

That's a small problem indeed..

My recommendation for now is to not deny access to such images but use a
redirector to redirect the accesses to a URL with your "error" icon..
But there is other approaches possible. See
http://devel.squid-cache.org/ for some new developments of mine in this
area.

Regards
Henrik

Dmitry.Karpov@pi2.ru wrote:
>
> Thank you for reply.
>
> >> 1) I want use ERR-page.gif, not ERR-page.html. I use
> >> acl banners url_regex "/etc/squid/banners"
> >> http_access deny banners
> >> deny_info banner.gif banners
> >> or
> >> deny_info http://www.myfirm.ru/banner.gif banners
> >> and both deny_info work wrong.
>
> > 1. Make a small HTML error that inlines the error GIF
> > from one of your servers.
>
> This is not working.
> My user visits to HTML-page, containing <IMG SRC="URL">.
> "URL" is present in my denylist.
> If I use something with
> Content-Type: text/html
> in HTTP-header, HTML-page (visited by my user) show "broken image".
>
> >> 2) Many sites use HTTP-header
> >> Expires: 1 Jan 1970
> >> or same date for static HTML-pages.
> >> In result, browser and CacheProxy don't cache this pages.
> >> Can I supress wrong expires for
> >> ^http://.*\.unixfaq\.ru/.*\.html?^
> >> and other sites in my own list?
>
> > 2. See refersh_pattern
>
> I will try.
>
> > And please use the Squid-Users mailinglist for Squid usage questions.
>
> O'k.
Received on Thu Jan 24 2002 - 16:33:22 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:05:56 MST