---
name: "X-Up-Clear-Cache"
area: "API"
kind: "HTTP header"
parent: "up.protocol module"
visibility: "deprecated"
url: "https://unpoly.com/api/X-Up-Clear-Cache"
---
<nav aria-label="Unpoly docs">[All docs](https://unpoly.com/index.md) · [up.protocol module](https://unpoly.com/api/up.protocol.md)</nav>

# X-Up-Clear-Cache

**This feature has been deprecated**. Use [`X-Up-Expire-Cache`](https://unpoly.com/api/X-Up-Expire-Cache.md) instead.

Load [`unpoly-migrate.js`](https://unpoly.com/changes/upgrading.md) to polyfill deprecated features.

The server may send this optional response header to control which previously cached responses should be [expired](https://unpoly.com/learn/caching.md#expiration) after this response.

The value of this header is a [URL pattern](https://unpoly.com/api/url-patterns.md) matching responses that should be expired.

For example, to expire all responses to URLs starting with `/notes/`:

```http
X-Up-Clear-Cache: /notes/*
```

