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

Support redirect field #18

Open
RangerMauve opened this issue Nov 5, 2020 · 0 comments
Open

Support redirect field #18

RangerMauve opened this issue Nov 5, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@RangerMauve
Copy link
Owner

Right now we internally resolve files and return responses as though the user loaded the resolved file.

This should optionally be disabled and 302 responses should be sent.

The redirect flag is what handles this in regular fetch.

So if a user sets redirect to manual, we would resolve the file, and return a 302 redirect so that the protocol handler or user can resolve themselves if they so choose.

We should also consider whether we should return a 302 redirect when a request gets made for a DNS address or a named drive. I think DNS doesn't make as much sense since you'd want to preserve the origin, but named drives could make sense so that users are less confused as to how to get the actual URL of the drive they created.

@RangerMauve RangerMauve added the enhancement New feature or request label Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant