-
Notifications
You must be signed in to change notification settings - Fork 71.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Always return the last Cal entry (don't worry about how old it might be) #476
Conversation
… of the callback-hell; also use env.DISPLAY_UNITS if units aren't set on request
1 similar comment
@jimsiff, @ELUTE, I talked to @YYGIRL about some users are burning through data partially due to the extra |
JSON payload is reduced about 40% but TCP and HTTP protocol overhead drops the net savings to 20%. Gzip encoding may help some more. |
thanks for testing @jimsiff did you also take a look at the main web monitor page, in addition to |
…ee if there are any issues
I just added gzip compression to everything, with that we're down to 255 bytes (455 with http overhead) |
Always return the last Cal entry (don't worry about how old it might be)
Also some refactoring by using async.parallel to make multiple ongo requests at once.
Bonus fix: also check
env.DISPLAY_UNITS
if theunits
query string param isn't set@bewest @ELUTE @jimsiff