On Wed, Sep 11, 2002 at 02:24:09AM +0200, Paul A. Rombouts wrote:
> > don't delete old files if a refresh returns a 404.
> There is the question though what to send to the browser while wwwoffle is
> online. Should the page containing the 404 response code be sent or the
> contents of the old spool file?
i think it should always be the errormessage that is sent to the user,
unless the user asks otherwise.
in offline mode a reload of the page could allow to get to the old page.
just like wwwoffle-errors:
Reloading this page will revert to the previous version if you are offline
or try again if you are online.
404 could be treated the same way.
in online mode maybe the same could be done,
returning the old page if the browser asked for a refresh
and the server content has not changed since.
otherwise some special url (through localhost)
might be necessary to access the old page.
(which would be more work to implement,
but then it would also help towards mierniks suggestion
of generally keeping a backup of the previous page
for wich the above reload method makes no sense.)
> I'll think about it some more and maybe I'll try to implement it.
hey cool, i didn't expect you to pick that up,
just wanted to throw the idea into the room.
will look forward to test it...
gruss, martin.
--
interrested in doing pike programming, sTeam/caudium/pike/roxen training,
sTeam/caudium/roxen and/or unix system administration anywhere in the world.
--
pike programmer travelling in europe open-steam.org
csl-gmbh.net (www.archlab|(www|db).hb2).tuwien.ac.at
unix bahai.or.at iaeste.(tuwien.ac|or).at
systemadministrator (stuts|black.linux-m68k).org is.(schon.org|root.at)
Martin B�hr http://www.iaeste.or.at/~mbaehr/