Re: Patch for squid short expiration time

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Fri, 28 Jul 2006 22:33:55 +0200

fre 2006-07-28 klockan 10:55 +0200 skrev Eduard Veleba:
> Dear Squid developers,
>
> in our company Seznam.cz we use your application Squid for a long time,
> for example at our service http://wiki.mapy.cz,
> and we are very satisfied with it. There was recently a demand to cache
> pages that has set expiration time shorter than
> 1 minute, that your system doesn´t allow. So we modified the code a
> little bit. This modification is an easy patch and we
> would very appreciate if you use it in Squid for other users. The patch
> is sent as an attachment and it's patch for Debian
> source squid 2.5.9-10sarge2.

Thanks, but we have already added a similar directive in squid-3.

NAME: minimum_expiry_time
COMMENT: (seconds)
TYPE: time_t
LOC: Config.minimum_expiry_time
DEFAULT: 60 seconds
DOC_START
        The minimum caching time according to (Expires - Date)
        Headers Squid honors if the object can't be revalidated
        defaults to 60 seconds. In reverse proxy enorinments it
        might be desirable to honor shorter object lifetimes. It
        is most likely better to make your server return a
        meaningful Last-Modified header however. In ESI environments
        where page fragments often have short lifetimes, this will
        often be best set to 0.
DOC_END

Regards
Henrik

Received on Fri Jul 28 2006 - 14:33:59 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Aug 01 2006 - 12:00:02 MDT