Re: [htdig] Expiration and cgi output

Didier Gautheron (
Sat, 02 Oct 1999 11:54:09 +0000

Fred Lindberg wrote:
> Hi,
> [slightly off topic:] I have a cgi script that presents a mailing list
> archive. I use htdig to index. I use the "Cache:" header to control how
> long the page should be cached (some are not changing, but e.g. the
> "last" message and indexes containing the active end of the archive
> change constantly).
> Is there anything I can do in a CGI to avoid that htdig will retry the
> pages which do not change) every time it reindexes? I can't store a
> last changed time (but could make one up). I could send a not-changed
> status code, but it would be nice to make htdig avoid the query in the
> first place.
> Any suggestions welcome. Thanks!
You can try with -l (I'm not sure it's working in latest version):
htdig -l -c ...
with in the db.log file the index url.
htdig will first read all the urls in your database and mark them as
already digged, so it will only retrieve the urls added since its last
run .
- You will need to recreate the db.log file after each dig


To unsubscribe from the htdig mailing list, send a message to containing the single word unsubscribe in
the SUBJECT of the message.

This archive was generated by hypermail 2.0b3 on Sat Oct 02 1999 - 04:50:25 PDT