[BUG?] Router.navigate ignoreCache for component


#1

Hi there.
I found maybe the little bug. For

view.router.navigate(urlToComponent,{ignoreCache: true})

doesnt work param ignoreCache: true. Not even if view have settings

xhrCache: false

router have still filled param router.cache.components and core method componentLoader of Router class that uses…

You wanted to do it or it was a bug?


#2

It is intentional, components parsed when loaded by componentUrl are cached, becasue component parsing can be a heavy operation and doing it every time can slow down the app. Anyway, in components it is supposed that you control rendering logic within component but not changing response every time