blob: 52cad6c41570e1f1f33bf2d8970ca4c45ac9948c [file] [log] [blame]
<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>