Client: added buffer cleaning
Server: fixed cache
Server: fixed authorization