 # maps domain name elements and path elements to folders
 get_cache_path = (url) ->
   url = parse_url url
-  # host, port, path (includes query), hash
-  hs = if url.host? then url.host.split '.' else []
+  # hostname, port, path (includes query), hash
+  hs = if url.hostname? then url.hostname.split '.' else []
   # reverse non-IP order
   number = /^[0-9]+$/
   ns = 0


  fix_cache cache,0

fix_relative_url = (url,path) ->
  resolve_url url, path

check_html_file = (cache,ix,file) ->
  si = file.path.lastIndexOf '/'
  ei = file.path.lastIndexOf '.'

      #console.log 'add '+url+' to fileurls'
      fileurls.push url 

fix_relative_url = (url,path) ->
  resolve_url url, path

# cache entry for each
make_cache = (feed,cache) ->

