diff --git a/tracker/index.js b/tracker/index.js index 1eb54d63..1e314dc2 100644 --- a/tracker/index.js +++ b/tracker/index.js @@ -87,6 +87,7 @@ method: 'POST', body: JSON.stringify({ type, payload }), headers: assign({ 'Content-Type': 'application/json' }, { ['x-umami-cache']: cache }), + keepalive: true, }) .then(res => res.text()) .then(text => (cache = text));