craftedbygc / taxi

Taxi is a 🤏 small and 🐊 snappy js library for adding slick PJAX navigation and beautiful transitions to your website.
https://taxi.js.org
565 stars 11 forks source link

updateCache improvements #8

Closed jakewhiteley closed 1 year ago

jakewhiteley commented 1 year ago

Currently, if you update the url via the history API and then call updateCache, it won't update anything as the URL won't exist yet in the cache.

Either

  1. Remove the .has check in updateCache
  2. Add a method to update content for any given URL