Ich habe mal in der Developertools → Console meines Vivaldi das getestet:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
> const client = new XMLHttpRequest();
client.open("GET", "http://rolfrost.de/", true);
client.send();
client.onreadystatechange = () => {
if (client.readyState === client.HEADERS_RECEIVED) {
const httpLM = client.getResponseHeader("Last-Modified");
console.log(httpLM);
}
};
<. () => {
if (client.readyState === client.HEADERS_RECEIVED) {
const httpLM= client.getResponseHeader("Last-Modified");
console.log(httpLM);
}
}
VM42:7 Tue, 14 Nov 2023 09:03:16 GMT
Last edited: 2023-11-14 13:09:51 +0100 (CET)