[Gllug] VACANCY: LAMP/WAMP Web Developers Required

will will at hellacool.co.uk
Fri May 28 20:31:33 UTC 2004


Richard Jones wrote:
> On Fri, May 28, 2004 at 08:27:52PM +0100, Branden Faulls wrote:
> 
>> Nearly every page will involve a 404 until it is cached.  It is a 
>>technique that Rasmus Lerdorf calls "funky caching".  If a page doesn't 
>>exist, it gets redirected to a script which either serves dynamic 
>>content or generates, and caches the appropriate page.  If you are 
>>getting 404's a lot, it may be  that the cache has just been cleared, or 
>>you're viewing a page that is never cached.
> 
> 
> But delivering 404s is wrong.  Any "solution" which involves sending
> 404s for valid pages is a bad solution.

Quite, that doesn't sound like a solution at all.  If you can control 
the 404 page that apache serves you can get it to serve an nph- script 
that can then output it's own 200 OK header.  You get a 404 logged but 
the client gets the 200.  Same effect, but the client gets the correct 
response.

Will.
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list