|
|||||||||||
|
Re: ProxyPass does cache the data, but gives 502 when the real host dies...
From: Graham Leggett <minfrin(at)sharp.fm>
Date: Wed Mar 14 2001 - 16:43:02 EST Jeroen Massar wrote:
> Boo :)
Aaaaaargh!!! Don't wake me up like that...! > - The CacheRoot dir contains mangled filenames, could
> - It also caches it correctly, except for some non-static
On HTTP/1.0, it's the Pragma header (simply "Pragma: no cache"). The Expires header gives the time when the object becomes non-fresh, as will be revalidated. On HTTP/1.1, it's the Cache-Control header, which has a whole lot of options, like no-cache (same as "Pragma: no-cache"), no-store, and a whole lot of others. Each object representation is represented by an Etag (electronic tag?) which is a unique string which changes when the object changes. This allows very fine control over whether an object is fresh or not. > - Whenever I turn off box2, box1 will start spitting
In theory using the Expires header correctly should support this, but often browsers will send a conditional request for checking whether cached data has changed - and this ends up all the way at the backend which isn't there - so a bad gateway gets sent back up the chain. There is nothing that can be done about normal requests - if the backend is dead and nothing is cached then there is nothing the browser can show (502 Bad Gateway). Sending a 404 is a bad idea - could send someone mailing in saying "the file is missing" when in fact the server was missing, sending admins on wild goose chases.
Regards,
-- ----------------------------------------- minfrin@sharp.fm "There's a moon over Bourbon Street tonight..."Received on Wed Mar 14 20:36:01 2001 This archive was generated by hypermail 2.1.8 : Thu Aug 24 2006 - 14:53:14 EDT |
||||||||||
|
|||||||||||