[opencms-dev] preview problem, quick fix

Martin Leja Martin.Leja at mpluss.de
Tue Nov 5 18:38:23 CET 2002


hi alex,

your quick-fix seems to fix the IE preview problem, unfortunately i noticed
a drawback.
With only the modified version of the file ...\Tomcat
4.1\webapps\opencms\WEB-INF\oclib\opencms.jar (opencms version 4.6.1)
changed, all IE previews take a long time for online and offline files.
On my pentium3 650MHz it takes about 20 seconds until an url like
http://localhost:8080/opencms/opencms/system/workplace/action/explorerShowRe
source.html?url=/opencms/opencms/somefile
is mapped to http://localhost:8080/opencms/opencms/somefile and finally gets
displayed.

Making previews with mozilla works as usual, nearly no delay.
Any idea how to fix this?

--
Regards, martin.leja at mpluss.de


----- Original Message -----
From: "Alexander Kandzior" <alex at opencms.org>
To: <opencms-dev at www.opencms.org>
Sent: Monday, November 04, 2002 12:55 PM
Subject: RE: [opencms-dev] preview problem


> Martin,
>
> the problem is related to the OpenCms cache settings. In the offline
> project these are set to
>
> //HTTP 1.1
>       resp.setHeader("Cache-Control", "no-cache");
>       //HTTP 1.0
>       resp.setHeader("Pragma", "no-cache");
>
> in the Classes
>
> com.opencms.template.CmsRootTemplate
> com.opencms.template.cache.CmsUri
>
> which causes trouble with later versions of IE because IE seems to be
> unable to write the plugin files to its temp directory with this
> settings.
>
> Quick Fix is to replace above lines with:
>
> //HTTP 1.1
>       resp.setHeader("Cache-Control", "max-age=5");
>       //HTTP 1.0
>       // resp.setHeader("Pragma", "no-cache");
>
> and recompile the OpenCms core. This will probably be incooperated in
> the next release.
>
> BTW if anyone is a http header guru I surely would appreciate some input
> on a set of better header settings for this caching stuff.
>
>
> Best Regards,
> Alex.
[...]





More information about the opencms-dev mailing list