[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lynx-dev feature-idea: option to include Last-Modified: date in body
From: |
David Woolley |
Subject: |
Re: lynx-dev feature-idea: option to include Last-Modified: date in body or filename |
Date: |
Tue, 30 Apr 2002 07:42:05 +0100 (BST) |
Firstly, you are using the wrong tool for the job. For mirroring
like this, wget is much better.
> to a file, that just before doing that, it
> would try doing that "]" and if there was
> a last-modified date there, it (lynx, P-rint)
Last-modified is provided with the response to a GET, so Lynx has already
seen it. There is no need to issue a HEAD. I'm not so sure about Lynx,
but for the big 2, they will actually have issued a GET with an
If-Modified-Since qualifier to only get the file if it has changed,
if it was already in their cache.
> (1) Stuff that header-line (last-modified) into the
> (2) Or, it could insert it into the filename,
3) set the file modification date as the last write time for the file
in the directory. This is what wget does and what it uses for avoiding
reloading when mirroring (as well as a size check). I think it does
an explicit HEAD, rather than trying a conditional GET, probably so
that it won't reload from sites that don't yet support this HTTP 1.1
feature.
; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden