Question I've read the docs below but couldn't find the reason for using the "setHeaderValue" function?
navigator.serviceWorker.ready.then(registration => {
return registration.navigationPreload.setHeaderValue(newValue);
}).then(() => {
console.log('Done!');
});
Reference