a/c 1988 dodge caravan 3.0 V6

a/c blows very cold with no problems until i shut off car for 5 to 10 min. like to run into a store. then restart the car the a/c blows warm for 5 to 10 min. then slowly starts to blow cold again. whats up with that.