- only evaulate close on web router, not api/static assets - allow /admin pages to still be available