I was advised by a doctor some years ago that the effectiveness of standard headache pills can be greatly enhanced by a simultaneous dose of caffeine. It certainly seems to work for me. I always wash them down with a strong cup of coffee.
In fact, some migraine pills contain caffeine along with the active ingredient.