Finite etaleness from two split principal localizations
Let $S,C$ be commutative rings with an $S$-algebra structure on $C$, let $I$ be a finite nonempty set, and let $f,g\in S$ generate the unit ideal. Suppose there are $S$-algebra isomorphisms $$C[1/f]\simeq\prod_{i\in I}S[1/f],\qquad C[1/g]\simeq\prod_{i\in I}S[1/g].$$ Then $C$ is finite and etale over $S$.