OTC meds can be stockpile much easier than prescription. The DEA, FDA, and the government set the rules on: dosage, daily limit, refill interval, and the like. All are in Class categories which dictate how they are dispensed to a patient. You can try to get a few extra months of the prescribed, but new laws may prohibit that.
Also, all but a few number of medications can be taken after it's 'sell by' or 'use by' date. There have been studies over the years, including one by the military, joined with the FDA, and most meds retain their 100% viability up to 10 years or more after that date. However, it also depends on how they are packaged and stored, and sealed.
Since I will be the "Doc" when SHTF, then I will have two separate caches. One for distributing to people: meds in small counts from the Dollar Store/Tree and the like and my own personal with mix of quantities to save space. Generic brand are the same as the other, but without the 'Brand name' and reputation behind it.
Knowing how to use your meds effectively is key; otherwise they're getting something that has no use. I suggest picking up a recent copy of the Tarascon Pocket Pharmacopoeia 2016 Deluxe Lab-Coat Edition 17th Edition
https://www.amazon.com/Tarascon-Pocket-Pharmacopoeia-Deluxe-Lab-Coat/dp/1284095282/ref=sr_1_1?ie=UTF8&qid=1469410665&sr=8-1&keywords=Tarascon+Pocket+Pharmacopia