Fix browser caching HTTP/2 responses

This commit is contained in:
Marco Realacci 2023-09-29 16:40:24 +02:00
parent 46ec64aa86
commit 9bb95ba780

View file

@ -14,7 +14,7 @@ onMounted(() => {
while (count.value < 100 && proto !== "h3") { while (count.value < 100 && proto !== "h3") {
console.log(count.value) console.log(count.value)
const response = await fetch("/?id=" + count.value); const response = await fetch("/?id=" + Math.floor(Math.random() * 1000000));
proto = performance.getEntries()[performance.getEntries().length - 1].nextHopProtocol proto = performance.getEntries()[performance.getEntries().length - 1].nextHopProtocol
count.value++ count.value++