Fixed wrong caching of websocket.