29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
'X-Live-Last-Arrival': container._liveLastArrival
}
})
fetch(req).then(function(resp) {
if (!resp.ok) return;
let newest = parseInt(resp.headers.get('X-Live-Newest-Artifact'));
if (newest <= container._liveLastArrival) {
resp.body.cancel();
return;
}
container._liveLastArrival = newest
resp.text().then(function(htmlbody) {
var parser = new DOMParser();
|
|
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
'X-Live-Last-Arrival': container._liveLastArrival
}
})
fetch(req).then(function(resp) {
if (!resp.ok) return;
let newest = parseInt(resp.headers.get('X-Live-Newest-Artifact'));
if (newest == container._liveLastArrival) { // != also handles some deletions
resp.body.cancel();
return;
}
container._liveLastArrival = newest
resp.text().then(function(htmlbody) {
var parser = new DOMParser();
|