Edit this page

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

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

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

For example, to uncache 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 clear the entire cache after a non-GET request.

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

X-Up-Clear-Cache: false

You may also force Unpoly to clear the cache after a GET request:

X-Up-Clear-Cache: *
This website uses cookies to improve usability and analyze traffic.
I accept or learn more