Use cf-ray as index

This commit is contained in:
dangered wolf 2023-04-13 12:35:51 -04:00
parent 227ea930b2
commit b8ed88ac9a
No known key found for this signature in database
GPG key ID: 41E4D37680ED8B58

View file

@ -161,6 +161,9 @@ const writeDataPoint = (event: FetchEvent, language: string | undefined, nsfw: b
],
doubles: [
nsfw ? 1 : 0 /* NSFW media = 1, No NSFW Media = 0 */
],
indexes: [
event.request.headers.get('cf-ray') ?? '', /* CF Ray */
]
});
}