Update resource cache after all AJAX requests.

Resolves #334
v0.1.18