Name

authenticate_ttl

Synopsis

Squid maintains a cache of proxy authentication usernames and credentials. Squid periodically removes unused entries to keep memory usage down. This directive specifies how long Squid keeps entries in the proxy authentication username cache. A user’s TTL is extended each time Squid receives a request from that user.

Tip

This directive doesn’t determine how long credentials remain valid. It only affects whether or not an entry is removed from the username cache. Squid may decide to revalidate the credentials of a user that is in the cache. Each authentication scheme has its own way of determining when to revalidate credentials with the external helper.

Syntax

authenticate_ttl time-specification

Default

authenticate_ttl 1 hour

Example

authenticate_ttl 30 minutes

Related

authenticate_cache_garbage_interval, auth_param

Get Squid: The Definitive Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.