Added support for redirected URLs, clearing cache