cache post or put file in memory