Forcing the server to return 200 rather than 304 to requests for the main html file, hopefully fixing some authentication/caching issues.

This commit is contained in:
Scott Erickson 2014-06-11 09:52:36 -07:00
parent cb378c13e2
commit d0ac09122f

View file

@ -93,7 +93,10 @@ sendMain = (req, res) ->
log.error "Error modifying main.html: #{err}" if err
# insert the user object directly into the html so the application can have it immediately. Sanitize </script>
data = data.replace('"userObjectTag"', JSON.stringify(UserHandler.formatEntity(req, req.user)).replace(/\//g, '\\/'))
res.send data
res.header "Cache-Control", "no-cache, no-store, must-revalidate"
res.header "Pragma", "no-cache"
res.header "Expires", 0
res.send 200, data
setupFacebookCrossDomainCommunicationRoute = (app) ->
app.get '/channel.html', (req, res) ->