You're assuming that what made the Iraq/Afghanistan invasions different from previous wars was the opponent rather than the advance of technology.
Is that not the case? What does technology have to do with these cases?
If that is the case, again, I contest that the real issue was fighting an unwinnable war for no real reason. Having a true, blue enemy to fight is an important difference. A war with China would be a Nazi Germany situation, whereas Iraq / Afghanistan were clearly a Vietnam.