Edit this page

up.network up.cache.evict([pattern])
JavaScript function

Evicts responses in the cache.

To only remove some cache entries, pass a URL pattern:

up.cache.evict('/users/*')

The server may also evict cache entries by sending an X-Up-Evict-Cache header.


Parameters

[pattern] string optional

A URL pattern matching cache entries that should be removed.

If omitted, the entire cache is evicted.