     Pjax.pageCache[page.url] = page
     page
 
-  getCache: ->
-    Pjax.pageCache[@url.toString('relative')]
+  getCache: (url = @url.toString('relative')) ->
+    Pjax.pageCache[url]
 
   @clearCache: (url) ->
     if url

        page.html = xhr.responseText
        @loadPage page
        Pjax.clearCache page.url
      success: (result) =>
        page.html = $.trim result
        page.name = ''
        @loadPage page

  loadPage: (page) ->

    @el.height ''

    pageId = $page.attr 'id'
    $(document).trigger 'pjaxload#' + pageId, [$page, page] if pageId
    @trigger 'pjaxload', [$page, page]

  unload: ->
    page = @setCache() if @url
