Celar the cache on write() and add an option to clear the cache
have the client explicitly clear the cache
Update js file
Merge branch 'clear-cache-on-save'