Since 2.0.0-beta.13, if your page contains multiple links to the same route (either with or without differences in the parameters) the prefetcher will make multiple requests for that route, all of which of course return identical payloads.
I think the changes to Messenger.send to return a promise might be the cause. (01a1773)
Previously, if multiple calls were made to prefetch with the same URL, each call would complete and PREFETCHED_URLS be updated appropriately before the next call to prefetch executed, so for all subsequent calls, Messenger.send would never be called.
Would it make sense for the values of PREFETCHED_URLS cache to be the promises that Messenger.send returns?
Since
2.0.0-beta.13, if your page contains multiple links to the same route (either with or without differences in the parameters) the prefetcher will make multiple requests for that route, all of which of course return identical payloads.I think the changes to
Messenger.sendto return a promise might be the cause. (01a1773)Previously, if multiple calls were made to
prefetchwith the same URL, each call would complete andPREFETCHED_URLSbe updated appropriately before the next call toprefetchexecuted, so for all subsequent calls,Messenger.sendwould never be called.Would it make sense for the values of
PREFETCHED_URLScache to be the promises thatMessenger.sendreturns?