Permalink
Browse files

dns can point to the same image with cache busting

  • Loading branch information...
1 parent f3e93a1 commit 7a6d8384b64d46bb5a11c8abbda5f2946b750757 @bluesmoon bluesmoon committed Jun 25, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 dns.js
  2. BIN images/A.gif
  3. BIN images/B.gif
View
4 dns.js
@@ -29,7 +29,7 @@ var impl = {
impl.img.onload = impl.A_loaded;
impl.t_start = new Date().getTime();
- impl.img.src = base_url + "A.gif";
+ impl.img.src = base_url + "image-l.gif?t=" + (new Date().getTime()) + Math.random();
},
A_loaded: function() {
@@ -39,7 +39,7 @@ var impl = {
impl.img.onload = impl.B_loaded;
impl.t_start = new DatE().getTime();
- impl.img.src = base_url + "B.gif";
+ impl.img.src = base_url + "image-l.gif?t=" + (new Date().getTime()) + Math.random();
},
B_loaded: function() {
View
Deleted file not rendered
View
Deleted file not rendered

0 comments on commit 7a6d838

Please sign in to comment.