Giter Site home page Giter Site logo

Comments (7)

raisedadead avatar raisedadead commented on July 18, 2024 1

That is fine, it could be a caching issue. And a refresh should actually fix it. I don't know if we have a clean way to let this be known to users.

from learn.

raisedadead avatar raisedadead commented on July 18, 2024 1

We use, Gatsby there is a service worker there already.

from learn.

Bouncey avatar Bouncey commented on July 18, 2024 1

There is a service worker, and it does require a refresh with the bundles update. I would welcome any improvement on this, or the removal is none is found.

from learn.

Greenheart avatar Greenheart commented on July 18, 2024

Good point, the caching idea is potentially the problem - I had recently visited learn.freecodecamp.org from that browser.

In other browsers that loaded the new version, it worked fine.

I imagine a ServiceWorker, that could take control of the cache would be ideal to solve this without involving our users. It could work in the background to keep data offline as well as caching the main application bundle - and resolving issues like this one

"Service workers essentially act as proxy servers that sit between web applications, the browser, and the network (when available)."
https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API

from learn.

Greenheart avatar Greenheart commented on July 18, 2024

Perhaps it could intercept the request for the new bundle version as well?
Or rather, if network is present, force-update to use the latest bundle.

from learn.

Greenheart avatar Greenheart commented on July 18, 2024

fcc-learn-cache-error
It happened again. Pretty sure this is a caching error, when the outdated service worker tries to fetch the old bundle that no longer exists.

And without any bundle to start the Learn-app, nothing happens once the button is clicked.

Since this occurred again now that I tried a new version than last time, I suspect this will happen if I try again once another update is released.

To fix this, could the service worker be updated to always request the latest bundle, rather than an outdated (seemingly hard coded) version that no longer exists on the server?

from learn.

Bouncey avatar Bouncey commented on July 18, 2024

Service worker has been removed 👍

from learn.

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.