Auto-cache /api and remove port, add anchor to key generation