Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞 [BUG]: browsers run code from a older deployment #1081

Open
1 task done
andreaskundig opened this issue Oct 13, 2022 · 0 comments
Open
1 task done

🐞 [BUG]: browsers run code from a older deployment #1081

andreaskundig opened this issue Oct 13, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@andreaskundig
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

This happens after new deployments.

One time the sqlite wasm file was missing in the deployment, but the application continued working in a browser that still had the file in the application cache. This is not the same as the browser cache, and is not purged when you clear the browser cache.

The last time it happened was at the introduction of UnitKepler that generates the content of its iframe instead of taking it from a file on the server. In PO's browser, the uber map for rider points showed "This page not found", which looks like it was looking for the file that was removed.

Expected Behavior

Always use the latest version of the application.

I think we need to actively bust the application cache when a new version of the application is deployed. I found this blog post that seemed relevant, but haven't read it yet.

https://medium.com/js-dojo/vuejs-pwa-cache-busting-8d09edd22a31

Images

signal-2022-10-13-075320_002

Steps to Reproduce

It's a bit hard to reproduce, but you could add some code that loads a file on a test page, deploy it, and see that it loads the file. Then remove the file and redeploy it. Then you would expect that test page to fail loading the removed file, but it would probably be loaded from the application cache instead.

Data Sources

No response

Web Sites

digipower.academy

Browser

I've seen it in chrome. I think PO is on Firefox

Operating System

No response

Log Output and Error Messages

No response

Anything else?

No response

@andreaskundig andreaskundig added the bug Something isn't working label Oct 13, 2022
@andreaskundig andreaskundig changed the title 🐞 [BUG]: browsers runs code from a older deployment 🐞 [BUG]: browsers run code from a older deployment Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant