It does not change when restricting to closed subschemes. It is because the residue ring does not change : .
When taking fibre of a morphism : ,
Consider a scheme Spec . Then by the universal property of fibre product, there are ( (natural) morphisms
latex $ and since the composition induces isomorphism on residue fields, so does the first map.