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

NGN.NET Redirect Cache #69

Open
coreybutler opened this issue Sep 24, 2018 · 0 comments
Open

NGN.NET Redirect Cache #69

coreybutler opened this issue Sep 24, 2018 · 0 comments

Comments

@coreybutler
Copy link
Member

When web requests receive a redirect response (301, 302, etc), either to another domain or another endpoint, the endpoint should be cached for future use. In other words:

  1. Request https://mydomain.com/path/to/content returns a 301 (permanent redirect) to https://someotherplace.com, which returns a 302 or 307 (moved temporarily) to https://finaldestination.com.
  2. Hash map stores https://mydomain.com/path/to/content --> https://someotherplace.com because that is the known permanent redirect. Anytime a user requests https://mydomain.com, NGN.NET should instead request https://someotherplace.com, which will reduce the route by a single hop.

Typically, the browser will prevent itself from making too many redirected requests.

Does the browser auto-resolve domain redirects? Is this functionality even necessary?

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

No branches or pull requests

1 participant