[PATCH] HTTPd Last-Modified header for gz-files

Denys Vlasenko vda.linux at googlemail.com
Tue Jan 11 17:00:44 UTC 2011

On Tue, Jan 11, 2011 at 5:44 PM, Sven-Göran Bergh <sgb at systemasis.com> wrote:
> In order to save space I want to store all static web
> content in compressed format _only_. HTTPd handles gz-
> files great (kudos to Peter for his patch).
> However, when no corresponding uncompressed file exist,
> the Last-Modified header specifies epoch zero
> (Thu, 01 Jan 1970 00:00:00 GMT). This may confuse caches,
> both in browsers and proxys.
> Attached is a small patch that takes the mtime of the
> gz-file itself in case no corresponding uncompressed
> file exists. (One could argue to always use the gz-mtime
> for gz-files though, but that is not up to me to decide).

Applied, thanks!

More information about the busybox mailing list