Support for Ajax. We don't want automatic redirects as Ajax cannot help but follow them automatically