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 assets and API calls using a service worker #26

Open
mshenfield opened this issue Apr 18, 2017 · 1 comment
Open

Cache assets and API calls using a service worker #26

mshenfield opened this issue Apr 18, 2017 · 1 comment
Labels

Comments

@mshenfield
Copy link
Owner

We already have a service worker - it's just not doing anything. We should cache assets and API requests - this could really reduce un-necessary load to the completions endpoint.

@mshenfield mshenfield added the js label Apr 18, 2017
@mshenfield
Copy link
Owner Author

mshenfield commented Apr 18, 2017

For /api endpoints, the main goal is to reduce calls to /api/completions and api/algebra when someone is
• backspacing
• retyping the same thing
• swapping

This doesn't have to live for longer than their visit - is there a way to empty a service-worker cache when someone leaves the page? This is probably better to implement in an API client with an in-memory cache.

EDIT This portion was completed in de5262a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant