refresh_pattern

 < Day Day Up > 

refresh_pattern

This directive provides a way to customize Squid's algorithm for validating cached responses. HTTP has a relatively complex procedure for determining whether or not a cached response is fresh or stale. In some cases, origin servers provide an explicit expiration time. However, the majority of responses don't have this information. For these, Squid applies some heuristics to the response. See Section 7.7 for more information.

Syntax

 refresh_pattern   regex     mintime     percent     maxtime   [options] 

Default

 refresh_pattern .  0  20%  4320 

Example

 refresh_pattern \.jpg$ 0 75 7200 
 < Day Day Up > 


Squid
Squid: The Definitive Guide
ISBN: 0596001622
EAN: 2147483647
Year: 2004
Pages: 401
Authors: Duane Wessels

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net