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"