code: function rebuild(){
    if (content)
      logMsg('cache', 'rebuild', true);
  
    content = {
      mtime: new Date,
      data: JSON.stringify(cache, null, 2)
    };
    //content.digest = contentDigest(raw);
  }
docs: function contentDigest(content){ var hash = require('crypto').createHash('md5'); hash.update(content); return hash.digest('base64') // remove trailing == which always appear on md5 digest, save 2 bytes .replace(/=+$/, '') // make digest web safe .replace(/\//g, '_') .replace(/\+/g, '-'); }