[Gllug] VACANCY: LAMP/WAMP Web Developers Required

Branden Faulls bfaulls at omphe.com
Fri May 28 22:44:08 UTC 2004


will wrote:
> 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.

Whether its a "solution" or not is relative to the perceived problem. 
But I accept that this is a hack and that the client should get a 200 
response. This does seem like a more appropriate twist to the protocol.

Thanks for the fresh perspective.

Branden

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




More information about the GLLUG mailing list