Ticket #1999 (closed bug: fixed)
Ajax: replace cache value in URL when cache === false, type == get and key (_) already exists
|Reported by:||emartin24||Owned by:|
I ran into an issue today where the ajax cache prevention parameter (_=(new Date()).getTime()) is being continuously appended to a URL.
I'm using livequery for an ajax call and after a few clicks, I end up with URL's that look like: http://mysite.com/mypage.html?_=1196716041523&_=1196716462963&_=1196716464245
My expectation would be that jQuery would look to see if this key already existed and if it did, replace the value with a new timestamp.
I've attached a patch. It could be optimized and perhaps changed to use a RegExp, but it works ;)
- Status changed from new to closed
- Resolution set to fixed
- Status changed from closed to reopened
- Resolution fixed deleted