[Mod_gzip] Possible bug in handling outdated precompressed fi les

Christian Kruse mod_gzip@lists.over.net
Tue, 8 Oct 2002 19:11:07 +0200


Hello,

On Tue, Oct 08, 2002 at 12:16:41PM -0400, Terry, Bill  (MARC) wrote:
> Thanks for your reply.

No problem.

> I just updated a number of pages. About 50 of the larger ones had
> precompressed versions on the Web server.

Has the Webserver full access to these files?

> I did not update the precompressed
> files, but mod_gzip did as soon as I requested them through the browser with
> fail.

Did I understand you correct? mod_gzip *tried* to update the files but
failed? How did you notice that?

> I work
> on Windows PC's and sometimes use WIN_Gzip to gzip individual files, but I
> use GZIP from the command line if I want to compress numerous files.  It
> could be that one of the gzip applications is doing something to the date
> that mod_gzip cannot read.

mod_gzip does not interpret the content of the precompressed files. It
just sends them to the browser and it tries to overwrite them when it
should update them. So it should be absolutely irrelevant which
application you use to compress them.

> But, that may be irrelevant, because when I FTP
> the gz files to the Web server, the server always shows the date that the
> file was copied to the server.

Even if they have been updated by mod_gzip?

> This is always different from, and later
> than, the Windows Created and Modified dates.

Yes, of course. When you upload them it is nothing else then a copy of
the original file, so the modification date of the file on the server is
the date you uploaded them.

Greetings,
 CK