Skip to content

Append querystring to redirects#304

Merged
ofhouse merged 4 commits intomainfrom
fix/proxy/redirect
Apr 16, 2022
Merged

Append querystring to redirects#304
ofhouse merged 4 commits intomainfrom
fix/proxy/redirect

Conversation

@ofhouse
Copy link
Member

@ofhouse ofhouse commented Apr 15, 2022

Changes

  • Appends the original querystring to redirects
  • Cache-Control header is set to public, max-age=0, must-revalidate for redirect responses
  • Content-Type for redirects is now text/plain
  • Adds response body to redirects, e.g. Redirecting to /newplacetwo/some/path?foo=xxx (308)

Fixes #296.

@ofhouse ofhouse merged commit 9e8f86b into main Apr 16, 2022
@ofhouse ofhouse deleted the fix/proxy/redirect branch April 16, 2022 07:47
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

Successfully merging this pull request may close these issues.

nextjs redirects strip query parameters

1 participant