Let $\mathscr{F}$ be a coherent sheaf on a scheme $X$ with reasonable assumptions. Obviously if I restrict to any point $x \in X$, the restriction $\mathscr{F}|_x$ is free over $x$.
I am interested in a the following question: I fix a natural number $n$ and I consider all subschemes $T \subseteq X$ which are thickenings of points of at most order $n$. I now want to describe those coherent sheaves $\mathscr{F}$ on $X$ such that when restricted to any such $T$ are free (or equivalently locally free).
If $n = 1$, then all coherent sheaves have this property. If it holds for all $n$, then I believe it implies that $\mathscr{F}$ is locally free since we can check this on a formal neighbourhood. What about for a fixed $n$?
Could this be connected to the notion of depth of a sheaf?