Edit this page

up.network up.cache.alias(oldRequest, newRequest)
JavaScript function

This feature is experimental. It may be changed or removed in a future version.

Makes the cache assume that newRequest has the same response as the already cached oldRequest.

Unpoly uses this internally when the user redirects from /old to /new. In that case, both /old and /new will cache the same response from /new.


oldRequest Object

The earlier request options.

newRequest Object

The new request options.

This website uses cookies to improve usability and analyze traffic.
I accept or learn more