---
title: Prevent race conditions with purge-all and shielding
summary: If edge and shield POPs are purged in the wrong order, stale content may get re-cached. You can prevent that.
url: https://www.fastly.com/documentation/solutions/examples/prevent-race-conditions-with-purge-all-and-shielding
---

If edge and shield POPs are purged in the wrong order, stale content may get re-cached. You can prevent that.

## VCL

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/6deeb323)

