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

Cache to localStorage #332

Closed
Fishrock123 opened this issue Jan 21, 2014 · 2 comments
Closed

Cache to localStorage #332

Fishrock123 opened this issue Jan 21, 2014 · 2 comments

Comments

@Fishrock123
Copy link
Contributor

It may be worthwhile Caching assets to localStorage to avoid re-fetching assets every time the user loads the game.

@coalman
Copy link

coalman commented Jan 21, 2014

Just a question, but what if the assets are updated on the web server after being stored in localStorage. How would we know when to re-fetch these assets (on later loads of the page)? Would we have to start putting some kind of version numbers on our assets?

@Fishrock123
Copy link
Contributor Author

Possibly something like http://dinosrc.it/, but requires server-side hashing.

Perhaps this is best implemented as a separate module to Phaser. Internal support for non-phaser caches would be a nice addition if not already supported, however.

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

2 participants