[opencms-dev] preview problem
Alexander Kandzior
alex at opencms.org
Mon Nov 4 12:55:42 CET 2002
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.
Alexander Kandzior
OpenCms Group / Alkacon Software
> -----Original Message-----
> From: owner-opencms-dev at www.opencms.org
> [mailto:owner-opencms-dev at www.opencms.org] On Behalf Of Martin Leja
> Sent: Monday, November 04, 2002 11:57 AM
> To: opencms-dev at www.opencms.org
> Subject: Re: [opencms-dev] preview problem
>
>
> hi alexander,
>
> after publishing the SWF i can preview it in the online
> version yes. the same applies to ZIP files in the download
> dir, preview with IE does not work.
>
> As i said before previewing SWFs or ZIP files with the
> current version of mozilla is no problem at all. I came to
> believe its a problem between tomcat or opencms and IE.
>
> Working with mozilla is no real alternative because the
> WYSIWYG editor only works in IE, and switching between the
> two neither.
>
> Last night i spent some hours analysing the communication
> between tomcat and the two browsers. I have no clue why
> GETting something in an offline project like: GET
> http://localhost:8080/opencms/opencms/system/workplace/action/
explorerShowRe
source.html?url=/opencms/opencms/pics/Fanm.swf HTTP/1.1
[...]
which is mapped to
GET http://localhost:8080/opencms/opencms/pics/Fanm.swf HTTP/1.1 [...]
only works with mozzilla but not with IE.
on the other hand GETting the same file in the online project, which is
mapped to: GET http://localhost:8080/opencms/export/pics/Fanm.swf
HTTP/1.1 [...]
works with both browsers. Could not try it with opera because this
browser don't even displays the workplace correctly.
Up to now i have no satisfying solution in porting a small site which
includes some flash files to opencms because of the flash preview
problems which result in a problem previewing html files containing the
flash files. Can we somehow isolate the problem to be finally be able to
fix it?
----- Original Message -----
From: "Alexander Kandzior" <alex at opencms.org>
To: <opencms-dev at www.opencms.org>
Sent: Saturday, November 02, 2002 6:38 PM
Subject: RE: [opencms-dev] preview problem
Martin,
did you try to publish this SWF and try preview it in the "Online"
version. I recently discovered a bug in the cache settings that
prevented displaying PDFs in the Offline version (and fixed it) but this
might apply to SWFs as well. Please try publishing the SWF and preview
in the "Online" project. Mail me again of this worked.
Best Regards,
Alex.
[...]
More information about the opencms-dev
mailing list