 
     queryString = @generateQueryString query
     kite = proxifyTransport kite
+    kite.cachedAt = +new Date()
+
     LocalStorage.setValue (signed queryString), (JSON.stringify kite)
 
 

      query = @generateQueryString query

    delete storage[signed query]


  @cache = (query, kite) ->


    try
      kite = JSON.parse kite

    catch e
      warn "[KiteCache] PARSE ERROR", e
      return @unset query

    if kite.cachedAt?

      cachedAt = new Date kite.cachedAt
      now      = new Date

      # Add 24 hours on top of cached at date
      cachedAt.setHours cachedAt.getHours() + 24

      if cachedAt < now
        warn "[KiteCache] CACHE FOUND BUT OUTDATED, REMOVING..."
        return @unset queryString

    else
      warn "[KiteCache] CACHE FOUND BUT DOESNT HAVE TIMESTAMP, REMOVING..."
      return @unset queryString


    return kite
