Edit this page

up.protocol X-Up-Clear-Cache
HTTP header

This feature has been deprecated. Use X-Up-Expire-Cache instead.

Load unpoly-migrate.js to polyfill deprecated features.

The server may send this optional response header to control which previously cached responses should be expired after this response.

The value of this header is a URL pattern matching responses that should be expired.

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

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

Overriding the client-side default

If the server does not send an X-Up-Clear-Cache header, Unpoly will expire the entire cache after a non-GET request.

You may force Unpoly to keep the cache fresh after a non-GET request:

X-Up-Clear-Cache: false