ALM-622 fixed caching for v5 API
ALM-632 better error handling of canonical url function