fake_responses.html (523B)
1 <body> 2 <script> 3 function request(type) { 4 var client = new XMLHttpRequest, 5 identifier = type == "tag" ? Math.random() : new Date().toGMTString(), 6 url = "fake_responses.py?" + type + "=" + identifier 7 client.open("GET", url, false) 8 client.send(null) 9 client.open("GET", url, false) 10 client.setRequestHeader(type == "tag" ? "If-None-Match" : "If-Modified-Since", identifier) 11 client.send(null) 12 } 13 14 if(window.parent.setup_iframe) { 15 window.parent.setup_iframe(); 16 request("tag"); 17 } 18 </script> 19 </body>