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:


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


[pattern] string optional

A URL pattern matching cache entries that should be removed.

If omitted, the entire cache is evicted.