You need a vented cap when using single action hydraulic cylinders. Close it when switching to double action when using IH christmas tree valve.
Also, original cap had a filtering element in cap. The original dipstick had a venting washer on dipstick so that filter (cotton waste) would not get sucked into pump. Instant pump failure when that happens.