I asked this question on Stack Exchange, but no one answered this.
I want to prove a coherent sheaf $M$ on $X$ is locally free if and only if this is true for $M|_{X'}$ , for all smooth curves $X'$ mapping to $X$. I think the only if direction is obvious. For the if direction, a coherent module is flat if and only if it is projective, for Dedekind domains if and only if torsion free as well. So I am thinking of using Tor$_1$. There is local criterion for flatness, but I am not sure if this will help.
This is used at the beginning of the proof of Proposition 5.13 of Gaitsgory's lecture notes.