Rubber is much more durable; foam will deteriorate. This may be especially true in humid climates. Many years ago I owned a cheap pair of speakers with foam surrounds. The surrounds deteriorated in about ten years time. I own a pair of speakers with rubber surrounds that are about 16 years old, and I've had no problems with those.