If your shower cap is made of plastic, rinse it with direct water frequently.
On the other hand, some shower caps are made of different materials other than plastic, these should be washed after a week to prevent them from damage.