You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add support for Opaque redirects
* Fix redirect option
* Determine redirect based on `status` property
Since we were relying on browser spec which supports a
concept of opaque-redirect, the Cloufdlare Workers on the other
hand don't suppport certain properties which make this possible.
They, instead make the actual status code available in redirect
manual mode which is now being used to determine whether the
request is redirect.
* change a test def
* Reduce the brittleness of test
* Run prettier of cloudflare-optimizer-scripts
* Rewrite Location Header for a redirect back to origin in proxy mode
* Handle Location rewrites for non-get requests
* styling fix for maybeRewriteRedirectHeader
Co-authored-by: Jake Fried <[email protected]>
* remove non-useful event.respondWith assertion
Co-authored-by: Jake Fried <[email protected]>
* use Headers init constructor
Co-authored-by: Jake Fried <[email protected]>
* clarity in test title
Co-authored-by: Jake Fried <[email protected]>
* reuse isRedirect and isReverseProxy
* Restructure rewrite header logic for non-Get metods
Co-authored-by: Jake Fried <[email protected]>
0 commit comments