Skip to content

Commit

Permalink
prevent weird redirect loop
Browse files Browse the repository at this point in the history
  • Loading branch information
mstorus committed Mar 15, 2013
1 parent 62b49cc commit f9631a1
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,16 @@ if (connect_to_stream) {
});
}

app.get('/', routes.index);
app.get('/muted', routes.index);
app.get('/channel/:channel_id', routes.index);
app.get('/return', routes.oauth_return);
app.get('/logout', routes.logout);
var noCache = function (req, resp, next) {
resp.setHeader('Cache-Control', 'no-cache, no-store, max-age=0');
next();
}

app.get('/', noCache, routes.index);
app.get('/muted', noCache, routes.index);
app.get('/channel/:channel_id', noCache, routes.index);
app.get('/return', noCache, routes.oauth_return);
app.get('/logout', noCache, routes.logout);
app.get('/healthcheck', routes.healthcheck);
app.get('/camofy-url', routes.camofy_url);
app.get('/file-url', routes.file_url);
Expand Down

0 comments on commit f9631a1

Please sign in to comment.