mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
Enabling caching in tracker script.
This commit is contained in:
parent
777dfeac0e
commit
7cf0927741
2 changed files with 5 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue