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