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

maximumFileSizeToCacheInBytes to 5Mb #1263

Merged
merged 2 commits into from
Aug 23, 2024
Merged

Conversation

jcardus
Copy link
Contributor

@jcardus jcardus commented Aug 23, 2024

The main javascript file is not being cached by the service worker be cause it passes the 4Mb limit.

The problem here is the server updates. If you update the server with a new build, the page won't open because the service worker will try to fetch and old javascript file which doesn't exist anymore.

It can be stuck forever. For it to update you have to shutdown the browser (not just refresh the page or close the tab/window) so that all clients release the active service worker.

If we cache the main javascript we won't have this problem, the page will open and the popup for the update will appear.

Captura de ecrã 2024-08-23, às 23 33 18

@tananaev
Copy link
Member

I say we pick a higher number, like 10MB. Also let's make it proper 10MB (10 * 1024 * 1024).

@tananaev tananaev merged commit 0d850ec into traccar:master Aug 23, 2024
1 check passed
@jcardus jcardus deleted the patch-1 branch November 4, 2024 17:28
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.

2 participants