From 7654f36e236e53e4b6b5de057e28311ba97e28a1 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Sun, 15 Jul 2018 17:26:37 -0700 Subject: [PATCH] Do temporary redirect instead Permanent redirect can be cached forever in the browser which means that changing redirect settings appear to not work. --- setup/start/nginx/appconfig.ejs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup/start/nginx/appconfig.ejs b/setup/start/nginx/appconfig.ejs index e9188099f..2bd18abdc 100644 --- a/setup/start/nginx/appconfig.ejs +++ b/setup/start/nginx/appconfig.ejs @@ -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; <% } %> } }