RE: How can I force nocache on a page?

"Miles Tillinger" <[email protected]>
Newsgroups gmane.comp.cms.jahia.devel
Message-ID <[email protected]>
I am wondering if this setting will apply to all page requests once it is set?  Or will the delay be set back to a default value on consequent page requests?

Regards,

Miles.
 

> -----Original Message-----
> From: Nicolas Lafaury [mailto:[email protected]] 
> Sent: Wednesday, 19 October 2005 5:39 PM
> To: [email protected]
> Subject: RE: How can I force nocache on a page?
> 
> long cacheExpirationDelay = 0; // [ms]
> jParams.setCacheExpirationDelay(cacheExpirationDelay);
> 
> 
> -----Message d'origine-----
> De : Miles Tillinger [mailto:[email protected]]
> Envoyé : mercredi 19 octobre 2005 08:56
> À : [email protected]
> Objet : How can I force nocache on a page?
> 
> I have a simple portlet that displays a form.  A user submits 
> the form (form page submits to itself), form contents are 
> emailed to the recipient and the user is shown either a 
> success or failure message depending on the successful email.
> 
> The problem is that when an email has been sent the 'Success' 
> page is cached and all further requests to the page will not 
> show the form until the /cache/offonce URL is used.
> 
> An example:
> 
> 1. User fills out form and hits submit
> 2. Form page submits to itself with hidden field to flag that 
> the form has been submitted.
> 3. Page detects the form has been submitted and send form 
> content via email 4. Success message is displayed.
> 5. User attempts to use the form again, via either
> 	http://someurl.com/jahia/Jahia/pid/100 or
> 	http://someurl.com/jahia/page100.html
> =09
> 	Both of these URL's show the 'Success' message when 
> they should be showing the form again.  The only way to get 
> the form to show again is by using 
> http://someurl.com/jahia/Jahia/pid/100/cache/offonce.  But 
> this is no use as users are accessing the form via a Links 
> container so /cache/offonce is not appended to the URL.
> 
> Is there some way I can force Jahia to not show the cached 
> version of the page?
> 
> 
> Regards,
> 
> Miles Tillinger
> Senior Technical Officer
> education.au limited
> 178 Fullarton Road
> Dulwich SA 5065
> Ph. (08) 8334 3247
> Fax. (08) 8334 3211
> Email: [email protected]
> Please visit our websites: 
> <http://www.edna.edu.au/>
> <http://www.educationau.edu.au/>
> Building and managing online information services and 
> knowledge networks
> 
> 
> *** Please consider the environment before printing this email ***
> IMPORTANT: This e-mail, including any attachments, may 
> contain private or confidential information. 
> If you think you may not be the intended recipient, or if you 
> have received this e-mail in error, please contact the sender 
> immediately and delete all copies of this e-mail. If you are 
> not the intended recipient, you must not reproduce any part 
> of this e-mail or disclose its contents to any other party.
> 
> This email represents the views of the individual sender, 
> which do not necessarily reflect those of education.au 
> limited except where the sender expressly states otherwise.
> 
> It is your responsibility to scan this email and any files 
> transmitted with it for viruses or any other defects.
> 
> education.au limited will not be liable for any loss, damage 
> or consequence caused directly or indirectly by this email.
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.