Autoclave is best, pressure cooker is essentially an autoclave so that'd be second. Dry heat would be third and will work for glassware but I wouldn't do the cap this way. You'll want to bake the media bottle at 400° for 60 minutes, do this with aluminum foil covering the open top so when it cools the inside of the bottle is not exposed to the environment.