mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
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:
parent
cb378c13e2
commit
d0ac09122f
1 changed files with 4 additions and 1 deletions
|
@ -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) ->
|
||||
|
|
Loading…
Reference in a new issue