Cache: reuse known folder sizes when doing a shallow scan - rebase

This fixes having to do a full recursive rescan of a folder when the content of the folder changes.

Also fixes being generating new etags to often.

@butonic @DeepDiver1975 @MTGap @karlitschek @LukasReschke