You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Peter Hargreaves <pd...@netscape.net> on 2001/11/19 15:36:42 UTC

Cache Problem Using MSIE5.0 And location.href

Hi Folks,

My solution uses browser frames. It seems to be OK with Netscape 
Explorer 4.0 but I have a cache problem with MS IE 5.0. I'm not sure if 
it is an MS bug or something to do with Cocoon. Any advice would be very 
welcome.

One of my frames contains a directory listing. When it loads the body 
onload property runs some javascript to set the location of my content 
frame to the last item in the directory.

<body onload="javascript:top.cols.content.location.href=lastitem.html">

By viewing IE Internet Options > Temporary Internet Files, I can confirm 
that the onload command loads the cache copy of the file instead of a 
new copy from the server. This is despite the fact that the cached file 
is listed as Expires=None, and Last Modified=None. Following the failed 
attempt the Last Accessed time is later that the Last Checked time. 
Surely this should be impossible!? Does this prove that it is an MS IE 
problem or could it be the way I am using Cocoon?

Can anybody help please?

Many thanks
Peter.

P.S. Cocoon 2 is brilliant - I like it very much.
P.P.S. I'm using: NT4.0, Jdk1.3, Tomcat 3.2.1, C2rlc2.


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Cache Problem Using MSIE5.0 And location.href

Posted by Alfredas Chmieliauskas <al...@sseriga.edu.lv>.
Peter Hargreaves wrote:

> Hi Folks,
>
> My solution uses browser frames. It seems to be OK with Netscape 
> Explorer 4.0 but I have a cache problem with MS IE 5.0. I'm not sure 
> if it is an MS bug or something to do with Cocoon. Any advice would be 
> very welcome.
>
> One of my frames contains a directory listing. When it loads the body 
> onload property runs some javascript to set the location of my content 
> frame to the last item in the directory.
>
> <body onload="javascript:top.cols.content.location.href=lastitem.html">
>
> By viewing IE Internet Options > Temporary Internet Files, I can 
> confirm that the onload command loads the cache copy of the file 
> instead of a new copy from the server. This is despite the fact that 
> the cached file is listed as Expires=None, and Last Modified=None. 
> Following the failed attempt the Last Accessed time is later that the 
> Last Checked time. Surely this should be impossible!? Does this prove 
> that it is an MS IE problem or could it be the way I am using Cocoon? 

MS IE definately has problems with caching ;-). Try setting the response 
headers in your cocoon page

    response.setHeader("Expires", "Mon, 01 Jan 1990 00:00:00 GMT"); // 
this "hack" usually works ;-)
    response.setHeader("pragma", "no-cache");

and the following meta tags in your document:

<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Cache-Control" content="no-cache"/>

this should definately solve your problem (on all browsers).

Alfredas

>
>
> Can anybody help please?
>
> Many thanks
> Peter.
>
> P.S. Cocoon 2 is brilliant - I like it very much.
> P.P.S. I'm using: NT4.0, Jdk1.3, Tomcat 3.2.1, C2rlc2.
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>




---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE [C2] Netscape Shows Squares For Text

Posted by Peter Hargreaves <pd...@netscape.net>.
Hi Folks,

Confirmation from an HTMLSerializer expert required please.

Further to this problem - I've now tried configuring the HTMLSerializer.

The sitemap documentation in combination with the actual sitemap suggests that 
the following contains all options for configuring the HTMLSerializer - but it 
doesn't seem to be effective:

   <component-instance name="html" 
class="org.apache.cocoon.serialization.HTMLSerializer" mime-type="text/html" 
logger="sitemap.serializer.html" pool-max="32" pool-min="4" pool-grow="4">
    <buffer-size>1024</buffer-size>
    <doctype-public>-//W3C//DTD HTML 4.0 Transitional//EN</doctype-public>
    <doctype-system>http://www.w3.org/TR/REC-html40/loose.dtd</doctype-system>
    <omit-xml-declaration>true</omit-xml-declaration>
    <encoding>UTF-8</encoding>
    <indent>1</indent>
   </component-instance>

I find that the doctype-public and doctype-system don't appear in my HTML and 
the encoding parameter is not effective if I change it. I did delete my 
tomcat/work directory between attempts - which might be necessary.

Could someone please confirm the correct syntax for HTMLSerializer and what is 
buffer-size, and indent please?

Many thanks,
Peter.

My system is: Gateway G6-350 (392,612k RAM), NT4.0sp6, jdk-1.3.1, tomcat-4.0.1,
cocoon 2.0.2-dev, NS Nav 4.7, NS 6.1, IE 5.0


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>