Thanks Jesse, :) For this project we are not using dojo (yet) but we
will for the upcoming projects. What did solve my problem was:

req.setRequestHeader( "If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT" );

I know this is very fragile, but we are in a rush here, tomorrow, we
have a presentation with some big shots to present the application.

I found: 
http://en.wikipedia.org/wiki/XMLHttpRequest#Microsoft_Internet_Explorer_cache_issues

which do explain a lot about it.

It's funny, back in 1997, when I was a ColdFusion developer, I always
need to worry with netscape 3.0, because IE 4.0 always parsed
everything (for good or bad).  Today, its totally the opposite....

Regards

On 9/13/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
This is the annoying IE bug. Even with the best cache breaking strategies
setup you won't be able to fix it unless you make the urls being used
unique. With dojo all you have to do is set preventCache:true in the
dojo.io.bind calls.

On 9/13/06, Vinicius Carvalho <[EMAIL PROTECTED]> wrote:
>
> Sorry about the OT, but since we have some masters of Ajax/JS here,
> I'm giving a shot.
>
> Today we experienced problems with our chat application. When running
> in clients that pass though a proxy, and use IE (this does not happens
> to Mozzila browsers). The user receives only the same message, and
> loops through it. What really happens is that the request never made
> to the server, so the user get the same message over and over.
>
> To try to bypass it. I've add the following to the function that polls
> the server:
>
> http_request.setRequestHeader("Cache-Control","no-store, no-cache,
> must-revalidate");
> http_request.setRequestHeader("Cache-Control","post-check=0,
> pre-check=0");
> http_request.setRequestHeader("Pragma", "no-cache");
>
> But the errors keep happening.
>
> Does anyone has any idea on how can I solve this?
>
> Regards
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com




--
Oracle AS is the worst application server in the world. Avoid it at
all cost. You always have alternatives:
Jboss, Websphere, BEA, Geronimo, Jonas, anything is better than that.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to