Borax seems to help. And if they are really bad I have used Dawn (yes dishwashing liquid) to strip some residue out of the fabric.

I haven't done it with cycling gear but my husband's work out gear gets really bad and that seems to work.