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 race helper functions #12

Open
zerotacg opened this issue Mar 6, 2015 · 0 comments
Open

cache race helper functions #12

zerotacg opened this issue Mar 6, 2015 · 0 comments

Comments

@zerotacg
Copy link

zerotacg commented Mar 6, 2015

Hi,
I just wanted to share some minimal helper functions [1] that makes the "cache races against network with potential dual rendering" a little easier by having the cache reject if the network fullfills [2] and have the network reject only if the cache also rejects [3]

[1] https://gist.github.com/zerotacg/d304348cdd5d2f965901
[2] https://gist.github.com/zerotacg/d304348cdd5d2f965901#file-network-cache-race-js-L21
[3] https://gist.github.com/zerotacg/d304348cdd5d2f965901#file-network-cache-race-js-L12

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

1 participant