Cache

By default barba.js uses a simple cache to save pages. By doing so, if the user navigates to a page already visited, there will be no xhr call.

You can manually access the cache through the object Barba.Pjax.Cache or disable it setting by Barba.Pjax.cacheEnabled as false.

The actual cache is a plain JavaScript obejct, and it's destroyed at the user's browser refresh.

In the future it is planned to create a more permanent cache based on LocalStorage with an expiration.