Skip to content

RUM-17207 Add local_cache_hit field to resource event schema#412

Open
barboraplasovska wants to merge 2 commits into
masterfrom
bplasovska/RUM-17207/local-cache-hit-schema
Open

RUM-17207 Add local_cache_hit field to resource event schema#412
barboraplasovska wants to merge 2 commits into
masterfrom
bplasovska/RUM-17207/local-cache-hit-schema

Conversation

@barboraplasovska

@barboraplasovska barboraplasovska commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

What and why?

Adds an optional, read-only local_cache_hit boolean field to the Resource so mobile SDKs can report when a resource was served from the device's local cache. The RUM backend has accepted resource.local_cache_hit == true as an input signal since 15/06 (to set cache_reason = local_cache), but no SDK can send it yet since the field doesn't exist in the schema.

@barboraplasovska
barboraplasovska marked this pull request as ready for review July 16, 2026 09:24
@barboraplasovska
barboraplasovska requested review from a team as code owners July 16, 2026 09:24
"description": "Network protocol used to fetch the resource (e.g., 'http/1.1', 'h2')",
"readOnly": true
},
"delivery_type": {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason why we can't reuse @resource.delivery_type? browsers currently indicate local cache through this and is not platform specific.

cc @qsellem as author of the product brief

"enum": ["cache", "navigational-prefetch", "other"],
"readOnly": true
},
"local_cache_hit": {

@mormubis mormubis Jul 20, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Edit: removed my comment, I just saw @samcolmanetti comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants