[opencms-dev] Pages not refreshing properly w/5.3.5 (cvs)

Alexander Kandzior alex at opencms.org
Tue Jul 6 09:40:02 CEST 2004


Hi Tristan,
 
you are right the cache problem still persists even in the current CVS
version.
 
Your fix unfortunatly does have unwanted sided effects. If you set the
headers to "no cache at all" as you suggest, it will be impossible to view
PDF in the offline project if the website uses SSL as protocol. 
 
I will spend some more time on the issue and hopefully fix it in a later
relase before 6. For now, it's just back to the old browser settings :-(



Best Regards,
Alex.

Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com <http://www.alkacon.com/>  

-----Original Message-----
From: opencms-dev-admin at opencms.org [mailto:opencms-dev-admin at opencms.org]
On Behalf Of Tristan Tarrant
Sent: Monday, July 05, 2004 6:49 PM
To: OpenCMS
Subject: [opencms-dev] Pages not refreshing properly w/5.3.5 (cvs)


Dear OpenCMS team,
I've recently read here on the mailing list the suggestion that the
browser's settings should be changed so that there would be no problems with
pages not refreshing properly. I believe this is not the correct way to
solve the issue.
The real fix is to use the cache headers by adding to the
pageHtmlStyle(in,String,String) method of org.opencms.workplace.CmsWorkplace
the following code, just before the stylesheet is addded:            

result.append("<meta Http-Equiv=\"Cache-Control\" Content=\"no-cache\">");
result.append("<meta Http-Equiv=\"Pragma\" Content=\"no-cache\">");
result.append("<meta Http-Equiv=\"Expires\" Content=\"0\">");

Tell me what you think

Tristan 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040706/64c12699/attachment.htm>


More information about the opencms-dev mailing list