Git Product home page Git Product logo

Comments (4)

ikreymer avatar ikreymer commented on July 24, 2024 2

Yeah, i think that could be support, perhaps serviceWorkerURL, which could be serviceWorkerURL=xxx/yyy/ads8f798798ads98.js and then replayBase would be set to xxx/yyy.
Are you expecting this URL, and in particular, the path to change a lot? Ideally, it will remain in a fixed location.

Also, I'm curious what the system is that you're integrating replayweb.page with!

from replayweb.page.

ikreymer avatar ikreymer commented on July 24, 2024 1

Supported in 1.8.0 release with swName attribute on <replay-web-page>, eg. <replay-web-page swName="custom.js"> Should have only filename, path should still be configured via replayBase

from replayweb.page.

RafaPolit avatar RafaPolit commented on July 24, 2024

It is a fixed location, the path will not change. The path will be www.yourdomian/api/files/ and the filename will always remain the same "serialized" name.

As background, we develop the Uwazi platform. One of our users wants to integrate their collection of web archives into our platform so that it is searchable, they can benefit from aggregations, etc.

We provide the ability to upload any custom file, but we serialize the names (for the time being) in order to avoid dealing with naming problems. We are also looking into letting go of this practice and allow custom files to keep their names, but it's not completely hassle free.

Maybe it's useful for me to understand: why is there a need from that "intermediate" service worker? Why cannot it be downloaded from a CDN as well? Is there something else done in the replayBase path directory? Do you do any filesystem actions there?

Thanks for the quick response.

from replayweb.page.

makew0rld avatar makew0rld commented on July 24, 2024

I am also trying to use replaywebpage on the Uwazi platform and would appreciate setting a custom service worker path.

from replayweb.page.

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.