Re: Ignore reload for some time ?

From: Henrik Nordstrom <>
Date: Wed, 23 Sep 1998 23:45:01 +0200

Patrick Lay wrote:

> I am running Squid1.2beta24 as an accelerator for Apche with an
> attached Database System. What I'm trying to do is to avoid a
> DoS-Attack by Users pressing Reload too often and so producing
> too much work for the Database System (which is generating the
> HTML-Pages dynamically).

> How can I achieve this ?

The current code cant do exactly this.

What you can do is to configure Squid to disregard "reload" requests,
and instead rely on its configured refresh patterns to keep the cache up
to date.

> It would be nice to configure Squid to return only the cached
> Object for, say, 1 Minute before checking/retrieving the page
> (and so straining the Server) again. Since the pages are generated
> dynamically every time, the timestamp doesn't help much for
> IMS-requests.
> Any ideas ?

refresh_pattern . 60 20% 4320 ignore-reload

Keep objects cached for 60 seconds unless the server sent a Expires: or
Last-Modified: that tells us otherwise. Disobey "reload" requests.

Henrik Nordström
Sparetime Squid Hacker
Received on Wed Sep 23 1998 - 15:16:53 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:42:11 MST