Hacker News new | ask | show | jobs
by Doublon 4305 days ago
I would probably make an HTTP interceptor to remove the elements from the cache on non-GET methods. The same could probably be done on socket events if you sync your clients with socket.io or something alike.

e.g.: PUT /users/123 => delete from cache the user "123"

1 comments

This is what I did with angular-cache.