useVisibleTask$(() => {
if (typeof window !== 'undefined') {
const hash = document.documentElement.getAttribute('q:manifest-hash');
const _fetch = window.fetch;
window.fetch = function fetch(...args) {
if (typeof args[0] === 'string' && args[0].endsWith('q-data.json')) {
args[0] += `?v=${hash}`;
}
return _fetch.apply(this, args);
};
}
});