Fermionic and bosonic ac conductivities at strong disorder