Can you build up a tolerance to aspirin?

Or painkillers in general? I'm asking because I think I have. I experience extreme menstrual pain that usually lasts a good few hours at a point where I can't move, I'm lightheaded, and in so much pain I feel like I need to throw up. I tried taking aspirin for the first time a year ago, cautiously because the last time I took something similar I got a really bad headache. Anyway, I only took one average strength one, and the pain went away within twenty minutes. But as time has progressed, I've been needing more. First, it was two normal aspirin every few hours. Then that stopped working, so I took an extra strength. That worked once, then I needed two. Now even if I take one just as the pain is starting, it doesn't work and I have to wait it out.

Something similar happens when I'm at the dentist's. Whenever I've needed freezing, it wears off fast, and I need to be given more.

Has anyone else experienced this kind of gradual resistance to aspirin or some other pain medication? Is there anything that makes it stop?

Can you build up a tolerance to aspirin?
Post Opinion