new ByteArrayContent with specified content type, used for cache