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

Fix unity.data.br caching #3802

Closed
eordano opened this issue Dec 20, 2022 · 2 comments
Closed

Fix unity.data.br caching #3802

eordano opened this issue Dec 20, 2022 · 2 comments
Assignees

Comments

@eordano
Copy link
Member

eordano commented Dec 20, 2022

Every time the explorer is loaded, at least on web, 44MB corresponding to the unity.data.br file are getting downloaded. Is this necessary? As it is part of the built files, we should be caching this to save bandwidth and time for the users.

Acceptance criteria: this data is now cached and loading is faster next time

@eordano
Copy link
Member Author

eordano commented Jan 4, 2023

We need to ensure unity build is always less than 42mb

@eordano eordano closed this as completed Jan 4, 2023
@2fd
Copy link
Contributor

2fd commented Jan 4, 2023

Browsers have a limit on the size of the files that can cache (Chromium: 42Mb, Firefox: 52Mb). The low-hanging fruit would be splitting the unity build on files lower than 42Mb, if not possible, we would need a service worker, but that requires managing the expiration of our own cache.

Research Walkthrough: https://www.notion.so/decentraland/Cache-unity-data-br-on-explore-4382b0cb78184973af415943f708cba1
PoC for Browser Cache: https://github.com/2fd/poc-browser-cache

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

No branches or pull requests

3 participants