From 9b9b48b05d13b42e04c3cbf8ee8ba79e2c7552aa Mon Sep 17 00:00:00 2001 From: Barbora Plasovska Date: Thu, 16 Jul 2026 10:37:51 +0200 Subject: [PATCH 1/2] RUM-17207 Add local_cache_hit field to resource event schema --- lib/cjs/generated/rum.d.ts | 4 ++++ lib/esm/generated/rum.d.ts | 4 ++++ schemas/rum/resource-schema.json | 5 +++++ 3 files changed, 13 insertions(+) diff --git a/lib/cjs/generated/rum.d.ts b/lib/cjs/generated/rum.d.ts index 8e5518b8..2a9af234 100644 --- a/lib/cjs/generated/rum.d.ts +++ b/lib/cjs/generated/rum.d.ts @@ -778,6 +778,10 @@ export type RumResourceEvent = CommonProperties & ActionChildProperties & ViewCo * Delivery type of the resource */ readonly delivery_type?: 'cache' | 'navigational-prefetch' | 'other'; + /** + * Mobile-only: indicates the resource was served from the device's local cache. Only ever sent as `true`; absence means not a local cache hit. + */ + readonly local_cache_hit?: boolean; /** * The provider for this resource */ diff --git a/lib/esm/generated/rum.d.ts b/lib/esm/generated/rum.d.ts index 8e5518b8..2a9af234 100644 --- a/lib/esm/generated/rum.d.ts +++ b/lib/esm/generated/rum.d.ts @@ -778,6 +778,10 @@ export type RumResourceEvent = CommonProperties & ActionChildProperties & ViewCo * Delivery type of the resource */ readonly delivery_type?: 'cache' | 'navigational-prefetch' | 'other'; + /** + * Mobile-only: indicates the resource was served from the device's local cache. Only ever sent as `true`; absence means not a local cache hit. + */ + readonly local_cache_hit?: boolean; /** * The provider for this resource */ diff --git a/schemas/rum/resource-schema.json b/schemas/rum/resource-schema.json index 5551d2d3..56879fcc 100644 --- a/schemas/rum/resource-schema.json +++ b/schemas/rum/resource-schema.json @@ -244,6 +244,11 @@ "enum": ["cache", "navigational-prefetch", "other"], "readOnly": true }, + "local_cache_hit": { + "type": "boolean", + "description": "Mobile-only: indicates the resource was served from the device's local cache. Only ever sent as `true`; absence means not a local cache hit.", + "readOnly": true + }, "provider": { "type": "object", "description": "The provider for this resource", From 543596f0d831ca9ee014cbae23ef4138eb2e0cb7 Mon Sep 17 00:00:00 2001 From: Barbora Plasovska Date: Thu, 16 Jul 2026 11:17:46 +0200 Subject: [PATCH 2/2] RUM-17207 Simplify local_cache_hit field description --- lib/cjs/generated/rum.d.ts | 2 +- lib/esm/generated/rum.d.ts | 2 +- schemas/rum/resource-schema.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/cjs/generated/rum.d.ts b/lib/cjs/generated/rum.d.ts index 2a9af234..8f4858e1 100644 --- a/lib/cjs/generated/rum.d.ts +++ b/lib/cjs/generated/rum.d.ts @@ -779,7 +779,7 @@ export type RumResourceEvent = CommonProperties & ActionChildProperties & ViewCo */ readonly delivery_type?: 'cache' | 'navigational-prefetch' | 'other'; /** - * Mobile-only: indicates the resource was served from the device's local cache. Only ever sent as `true`; absence means not a local cache hit. + * Whether the resource was served from the device's local cache */ readonly local_cache_hit?: boolean; /** diff --git a/lib/esm/generated/rum.d.ts b/lib/esm/generated/rum.d.ts index 2a9af234..8f4858e1 100644 --- a/lib/esm/generated/rum.d.ts +++ b/lib/esm/generated/rum.d.ts @@ -779,7 +779,7 @@ export type RumResourceEvent = CommonProperties & ActionChildProperties & ViewCo */ readonly delivery_type?: 'cache' | 'navigational-prefetch' | 'other'; /** - * Mobile-only: indicates the resource was served from the device's local cache. Only ever sent as `true`; absence means not a local cache hit. + * Whether the resource was served from the device's local cache */ readonly local_cache_hit?: boolean; /** diff --git a/schemas/rum/resource-schema.json b/schemas/rum/resource-schema.json index 56879fcc..6554f83e 100644 --- a/schemas/rum/resource-schema.json +++ b/schemas/rum/resource-schema.json @@ -246,7 +246,7 @@ }, "local_cache_hit": { "type": "boolean", - "description": "Mobile-only: indicates the resource was served from the device's local cache. Only ever sent as `true`; absence means not a local cache hit.", + "description": "Whether the resource was served from the device's local cache", "readOnly": true }, "provider": {