Adjust an oven rack to the middle position and preheat to 450 degrees. Coat a 2 1/2-quart casserole dish with nonstick spray.: The oven heat creates a quick burst of color on the crumbs and ensures the dish is piping hot when it comes out. You will feel the warm oven air as it preheats, and that first surge of heat helps the gratin finish properly. This step matters because a fully heated oven gives even browning; if you skip preheating, the topping can dry out before the center is hot. A common mistake is under preheating, which leads to uneven bubbling and a pale crust.
In a Dutch oven or large pot, bring 4 quarts water and 1 tablespoon salt to a boil. Add cauliflower and cook until tender, 3 to 4 minutes. Do not overcook. Transfer to a colander and rinse with cold water to stop the cooking. Drain well.: When the water hits a rolling boil, you will hear a lively bubble and see steam rise; the salted water seasons the cauliflower from the inside. After a quick blanch, the florets should be fork tender but still hold shape, with a slightly muted, cooked aroma. Rinsing with cold water preserves firmness and stops carryover cooking, which prevents a mushy final texture. A typical error is leaving the cauliflower in boiling water too long, resulting in floppy florets that won’t stand up to the sauce.
Meanwhile, melt butter in a large skillet over medium-high heat until the foaming subsides. Stir in shallots and cook until softened, about 2 minutes. Stir in garlic and thyme until fragrant, about 30 seconds.: As the butter melts, it will foam and then calm, releasing a nutty butter scent. The shallots should become translucent and tender, giving off a sweet, savory perfume. Adding the minced garlic and thyme briefly releases fragrant oils; you will notice the kitchen fill with an inviting aroma. The purpose here is to build flavor layers, and cooking aromatics gently prevents bitterness. A common slip up is cooking the garlic too long, which can turn bitter and overpower the sauce.
Stir in flour and cook until lightly browned, about 1 minute. Whisk in cream, Parmesan cheese, nutmeg, and salt and pepper to taste (I like 1 teaspoon kosher salt and 1/2 teaspoon pepper). Bring to a boil; reduce heat and simmer until thickened, 1 to 2 minutes.: The toasted flour loses its raw taste and forms the base for a velvety sauce. When you pour in the heavy cream , it will hiss slightly and then begin to thicken as it heats; whisking smooths any lumps. As the freshly grated Parmesan cheese melts, the sauce becomes glossy and aromatic with a savory depth. The faint scent of nutmeg adds a subtle warmth. This technique matters because proper thickening ensures the sauce clings to the florets. Avoid boiling hard for too long, as excessive heat can separate the sauce.
Off the heat, add cauliflower and toss to coat. Pour into the prepared baking dish and top with breadcrumbs. Bake until hot and bubbly, about 12 to 15 minutes. Serve immediately.: When you fold the sauce into the cauliflower , you should see each floret glistening with a silky coating; the steam will carry the scent of cheese and cream. Spoon the mixture into the prepped casserole so the surface is even, then scatter the bread crumbs for a crisp finish. In the oven, the top will turn a warm golden color and you will hear a light sizzle as bubbling begins. This final bake melds flavors and crisps the crumbs; if you overbake, the crumbs can burn while the interior dries, so watch the last few minutes closely.