Cat dandruff

My cat is about 3 years old. He’s an indoor cat only, so he doesn’t get dirty. But he always has so much dandruff. I brush him and have tried dry shampoo a few times, but neither is working to get rid of it. Should I try washing my cat? I’ve always been told not to, so I’m not sure what to do here. Any help would be appreciated!