Do temporary redirect instead

Permanent redirect can be cached forever in the browser which
means that changing redirect settings appear to not work.
This commit is contained in:
Girish Ramakrishnan
2018-07-15 17:26:37 -07:00
parent 6810c61e58
commit 7654f36e23

View File

@@ -172,8 +172,9 @@ server {
<% } else if ( endpoint === 'app' ) { %>
proxy_pass http://127.0.0.1:<%= port %>;
<% } else if ( endpoint === 'redirect' ) { %>
# redirect everything to the app
return 301 https://<%= redirectTo %>$request_uri;
# redirect everything to the app. this is temporary because there is no way
# to clear a permanent redirect on the browser
return 302 https://<%= redirectTo %>$request_uri;
<% } %>
}
}