-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Labels
Description
So the current implementation gives the client an etag which is already nice but the browser will still send out a request. Using the connect.static maxAge parameter sets the caching headers so the browser will not even send a request for the code, speeding up the connection.
Since you're not using connect.static I think it may be enough to just add the header at
node-browserchannel/lib/server.coffee
Line 840 in bfc517f
| res.writeHead 200, 'OK', |
but there may be some subtlety involved.
It is desirable to turn off this header while developing the client code, so some sort of option would have to be settable, but I think setting the default to at least a day is probably a good idea.
Reactions are currently unavailable