[Zope] multiple visits to dtml-method page

Sam Gendler sgendler@impossible.com
Wed, 22 Mar 2000 17:05:08 -0800


IE will show a cached page, regardless of the settings, when hitting the back button.
If you were to type in the URL, it might actually get the page, but you can never be
too sure with IE.  Its cache is terribly misbehaved.  Try making the page uncacheable
with a Cache-Control: no-cache header.  To verify if this is the problem, hit
ctl-reload in IE (shift-reload in netscape) to force a reload of the page.

--sam

Curtis Maloney wrote:

> On Thu, 23 Mar 2000, Daniel.Weber@SEMATECH.Org wrote:
> > I have a dtml-method page that displays a table of values and allows the viewer
> > to delete on of them (using an sql method on the next page).  All works as
> > expected, but I noticed an odd thing:  when I used the back button on the
> > browser the table of values was not updated, but showed the old values.  This is
> > bad, because people will think their delete did not work.
> >
>
> Yes, most browsers do this.  It's simply a result of their caching.
>
> > How do I force a page update?  I checked the IE5 options to make sure it was
> > checking the date stamp on every visit, so I don't think it's a cache issue,
> > though I don't know enough about browsing to say it isn't.  Shouldn't forms be
> > re-submitted on the back button?
>
> The only way i know of involves catching hits to the back button involving
> JavaScript.  Not pretty, IMHO, nor terribly portable.
>
> >
> > I'm sort of confused how this is all handled....
> >
>
> Upgrade your users? (o8
>
> Either that, or, as some of our sites have, put up a message saying "DO NOT
> PRESS THE BACK BUTTON, PRESS THIS ONE INSTEAD -->"
>
> --
> Have a better one,
>         Curtis.
>
> <dtml-var standard_work_disclaimer>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )