Always wipe down the shower after use to prevent water from sitting on the caulk and then mix one part bleach and 10 parts water in a spray bottle. Apply this after you have wiped down the shower to prevent mold growth. Leave it for 5 minutes, and then wipe it away.
You could also use a caulk with a biocide that kills mold and mildew to prevent spores.