Cache generated routes for efficiency and allow to pass domain with http:// or https://

Signed-off-by: crynobone <crynobone@gmail.com>