Enabling caching in tracker script.

This commit is contained in:
Mike Cao committed 2022-03-18 22:26:23 -07:00
1 parent 777dfeac0e
commit 7cf0927741
2 files changed
+5 -6

No files matched your search

+2 -1
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);