[thelist] AJAX pains - why is Safari being bitchy?
Matt Warden
mwarden at gmail.com
Wed Apr 5 10:31:42 CDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Christian Heilmann wrote:
> I just put an RSS displayer online for you to check out:
>
> http://onlinetools.org/tools/feednav/
>
> My issue with it is Safari:
>
> 1) Safari doesn't seem to get request.status although I made the
> request unique with a timestamp:
> request.open('get',feednavcfg.serverScript+encodeURI(url)+'&t='+now.getTime());
>
> 2) In some feeds Safari does just hangs and does not even trigger the
> timeOut I defined for bad requests.
>
> Any way around that or is it just a given until the next upgrade is out?
Safari's cache logic is borked. Until they fix it, I've been forcing
Safari to avoid its cache. Not exactly the best option in a lot of
cases, but since you're trying to make the request unique anyway, sounds
like this might be for you.
Before you call send():
request.setRequestHeader('If-Modified-Since',
'Sat, 29 Oct 1994 00:00:00 GMT');
The date is arbitrary. Just make sure it's formatted correctly
- --
Matt Warden
Miami University
Oxford, OH, USA
http://mattwarden.com
This email proudly and graciously contributes to entropy.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFEM+LerI3LObhzHRMRAhL7AJ4uUE+fzEIWbgTx9woVTyMgf+1dhQCg4M6d
Wcogi4oZ+bsNMQgGQFmtWQA=
=FgdX
-----END PGP SIGNATURE-----
More information about the thelist
mailing list