Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert data download to POST to avoid long URLs #144

Open
rod-glover opened this issue Jul 20, 2022 · 1 comment
Open

Convert data download to POST to avoid long URLs #144

rod-glover opened this issue Jul 20, 2022 · 1 comment

Comments

@rod-glover
Copy link
Contributor

rod-glover commented Jul 20, 2022

Update: This may not be necessary if we are prepared to ditch IE/Edge support (:tada:). All other browsers support URLs of at least 8k chars, and servers do too. In that case we could configure to allow long URLs and not go to all this trouble. See #143 for more info.

This must be coupled with a more complicated arrangement in the server. One method would be to return a URL in the POST response that the client (this app) GETs. That URL should be formed from a deterministic (but short) hash of the parameters passed in the POST. The client can trigger a download programmatically once it receives the response from the POST.

@rod-glover
Copy link
Contributor Author

I have encountered a couple of suggestions online that the download from a post can somehow be managed directly, but I am not convinced of this ... and, FWIW, you would lose the caching of the actual data download, which you keep with the deterministic hash-based return URL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant