Enabling caching in tracker script.

This commit is contained in:
Mike Cao 2022-03-18 22:26:23 -07:00
parent 777dfeac0e
commit 7cf0927741
2 changed files with 5 additions and 6 deletions

View file

@ -9,7 +9,8 @@ export async function getSession(req) {
throw new Error('Invalid request');
}
const { website: website_uuid, hostname, screen, language, cache } = payload;
const { website: website_uuid, hostname, screen, language } = payload;
const cache = req.headers['x-umami-cache'];
if (cache) {
const result = await parseToken(cache);