Hi,
   If this is true then there is no way make sure that the struts action
will be hit ? We show a description page that is just text. But the Generic
forward action that forwards to description.jsp also takes a report ID and
puts in the session. Sometimes the action wasn't fired because - we think -
the browser picked it up from the cache. So the report ID became stale.

   So finally we used this

<META HTTP-EQUIV="Expires" CONTENT="-1">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
 
 The "-1" value - I don't have an explanation for that. The original value
was "0". It worked. Maybe it will fail during rigorous testing.

Mohan

-----Original Message-----
From: David Graham [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 9:42 PM
To: [EMAIL PROTECTED]
Subject: Re: Cache


You can use various http headers to tell the browser to not cache the pages.

  There's no guarantee that the browsers will follow your suggestion though.

  It sounds like you're trying to control the user too much.

David



>From: Gus Delgado <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>Subject: Cache
>Date: Thu, 13 Feb 2003 10:53:53 -0500
>
>Is there any way to clean the cache from an Action. I have a LogoutAction 
>that gets all of the Attributes in the session by name and removes all of 
>them + it invalidates the session, but I also want to clear the cache so 
>that when the user hits the back button nothing will be there.
>
>Is there any way to do this?
>
>-thanks
>Gus
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to