Code Monkey home page Code Monkey logo

Comments (2)

bcaudan avatar bcaudan commented on June 23, 2024

Hi @robolmos,

Nice suggestion but to retrieve resource data, we are using:

  1. resource timing API, which does not provide access to response headers

  2. js proxy for XHR and fetch requests, which would not be the most relevant resources for CDN cache data

Did you have an approach in mind?

from browser-sdk.

BenoitZugmeyer avatar BenoitZugmeyer commented on June 23, 2024

Hello, sorry for the late follow up :)

We released a new API in v2.13.0 to allow adding additional data on events, based on a "context" used to generate the event. So, you now have access to the performanceEntry exposed by the browser for each resource event, and the possibility to use those to extend the event.context property to store additional data.

But, like @bcaudan wrote, the browser does not expose the headers of resources, even if they are served on the same origin. I don't think we can do much more for your use case, sorry!

from browser-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.