On 11/29/06, Jorge Godoy <[EMAIL PROTECTED]> wrote:
>
> "Diez B. Roggisch" <[EMAIL PROTECTED]> writes:
>
> > Hi,
> >
> > today I had the marvelous joy of making my app work with IE 6. Time to fall 
> > to
> > ones knees and praise Bill - for sure. Such a great browser!
> >
> > Just one little peculiarity made me stumble - for a few hours only, nothing
> > really worth mentioning. Caching. Which prevented my beautiful JSON requests
> > to be actually issued.
> >
> > Now my colleagues work with dojo, and after I questionend them how they've
> > setup their server to prevent caching, they tell me that there is a 
> > generated
> > parameter attached to each request that will prevent caching - a timestamp I
> > presume.
> >
> > So - is there any chance such a thing could be made (optionally) part of the
> > Async-package?
>
> I use Math.random to generate a random number with every request.  This is
> discarded by the application.

There's always the chance of getting the same random number twice.. A
timestamp with enough precision is generally better. It's *extremely*
unlikely that a single user is going to get the same exact timestamp
twice... there would have to be something seriously wrong with their
UA for that to happen.

-bob

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to