Let $f: Y \rightarrow X$ be a map of topological spaces such that for any $x \in X, f^{-1}(x)$ has trivial cohomology for some cohomology theory (in my case, cohomology with rational coefficients is enough). Is it true that $f$ induces an isomorphism on cohomology for the same theory?
If not, does this become true if we assume $f$ is a map of CW-complexes, or in some similar way nice?
edited to add some context: I'm hoping for a similar result to Homotopy equvalence from contractibility of fiber.; however, I'm hoping to replace weak homotopy equivalence with some cohomology theory, both in the assumption and the conclusion.