[Yanel-dev] empty files

Julian Reschke julian.reschke at gmx.de
Tue Jul 8 11:56:09 CEST 2008


simon litwan wrote:
> i tried it on apache and it just serves the empty document. the header 
> looks like this:
> HTTP/1.x 304 Not Modified
> Date: Tue, 08 Jul 2008 09:26:17 GMT
> Server: Apache/2.2.3 (Debian) DAV/2 SVN/1.4.2 mod_ssl/2.2.3 OpenSSL/0.9.8c
> Connection: Keep-Alive
> Keep-Alive: timeout=15, max=100
> Etag: "308004-0-9b1e6700"
> 
> in tamper-data i also see the size (-1). but i'm not sure if tamper 
> figures it out by its self, because i can't see anything in the header.
> 
> but i really consider the behavior of yanel a bug.
> 
> cheers
> simon

This is a response to a conditional request ("If-None-Match" or 
"If-Unmodified-Since").

If the question was: "how do I serve a file with length 1" (as opposed 
to a non-empty file), the answer is: the same way as any non-empty file. 
Just state "Content-Length: 0".

BR, Julian


More information about the Yanel-development mailing list