|
|||||||||||
|
Re: mod_proxy patches for HTTP Header manipulation
From: Kwindla Hultman Kramer <kwindla(at)allafrica.com>
Date: Fri May 11 2001 - 01:30:48 EDT Graham Leggett writes: > > >>> The first two are a lot like the Header directive from
Hi, >
Sure. CacheFreshenDate, if 'On', sets the Date header to be current when a document is returned from the cache. (The default 'Off', is the same as the regular mod_proxy behavior, which is not to change any headers at all, including the Date header.) We do so for two reasons:
We do this because we depend on both advertising revenue and on "traffic growth and credibility" to support our work (distributing content from 85+ African publishers to a global audience -- most of our publishers would not be able to reach this audience or to generate revenue from such distribution without us). Both advertising and investor/partner/public perception are heavily effected by "audited" traffic metrics. The audited (and I use the term very loosely <sigh>) traffic information comes from our log files. While I would very much prefer not to engage in even this relatively non-aggressive form of cache-busting, we don't really have a lot of choice. When we experimented with longer ttl's, our traffic dropped significantly. 2) Some of our heavily-used and updated news pages have reasonable times-to-live of three to five minutes. So that's how long we want mod_proxy to cache them. Unfortunately (for reasons that are not entirely clear but that perhaps have something to do with the non-freshened date behavior mentioned above), we were seeing big spikes in accesses around the expiration times of the most heavily used of these pages. The pages take a couple of seconds to construct themselves, and there was a nasty pile-up when each traffic peak coincided with the proxy finding a stale copy in the cache, leading to multiple requests in quick succession to our backend server before a new copy could be placed in the cache. We were tearing our hair out. I hope this clarifies the intent behind my patch. Documentation, with examples, can be found here: http://allafrica.com/tools/apache/mod_proxy/mod_proxy.html#cachefreshendate In general, patches for all the relevant files (including the manual page) are at: http://allafrica.com/tools/apache/mod_proxy/
Thanks again,
This archive was generated by hypermail 2.1.8 : Thu Aug 24 2006 - 14:53:16 EDT |
||||||||||
|
|||||||||||