Skip to content

Commit

Permalink
Revert "prevent weird redirect loop"
Browse files Browse the repository at this point in the history
never mind, that wasn't the problem

This reverts commit f9631a1.
  • Loading branch information
mstorus committed Mar 15, 2013
1 parent f9631a1 commit 3bcdaa4
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,11 @@ if (connect_to_stream) {
});
}

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('/', 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);
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 3bcdaa4

Please sign in to comment.