First tentative to support 302 redirects. It will not be easy...
When a file has GET params, remove them to allow file saving.