----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------


>
>       Just a small problem I'm trying to solve and I know there must be
>a quick hack for sorting it out.  This is the scenario:
>
>Standard pages consist of a header frame and a content frame. (see
>http://www.eeng.dcu.ie ).  The problem with frames is trying to preserve
>user control etc. and I want to allow people to type urls for anywhere
>in the site.  So to do this I allow people to say call 
>http://www.eeng.dcu.ie/staff/technical.html  - it loads the page and
>onload it checks if (self==top) and if it is then it calls a servlet
>which writes out the frames code and essentially forces the header on
>this page (which I want there on all pages within the site).  The
>servlet is called in this case using: 
>http://oak.eeng.dcu.ie/admins/eepage?url=/staff/technical.html
>
>Everything is dandy and I'm patting my own back when I find out that
>if you try to go back (as some people seem to like to) using the
>browser back button or a history.back() it goes back to the page,
>which on load calls the servlet again and again and again everytime I
>click back.  Can anyone think of a quickie way around this?  I've
>been messing with referrer and history but to no avail.  Thanks...
>
>David Molloy
>

You might be able to fix this by using the

   Cache-control: max-age=3600

or some similar header.  This header (to be set in HTTPServletResponse)
tells the browser not to bother coming back to the server for the page
if it is less than an hour old.

I don't know, but the servlet engine may by default emit the 

   Cache-control: no-cache

header, which implies that the browser should by no means consult its
cache to redisplay a page.  Read the HTTP 1.1 spec for more info.
I referred to my O'Reilly "Web Client Programming with Perl" book for
this info.

Stephen

P.S.  There may be other headers which will help you fine-tune the
      control of page cacheing.




--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to