Skip to content
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

Express migration + website caching #26

Merged
merged 57 commits into from
Jul 1, 2014

Commits on Jun 21, 2014

  1. Configuration menu
    Copy the full SHA
    f1ad066 View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2014

  1. Merge pull request #2 from nightscout/master

    Merge retrospective-prediction
    brianhanifin committed Jun 22, 2014
    Configuration menu
    Copy the full SHA
    2614577 View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2014

  1. Improved caching headers:

    Thanks to advice by Adrien de Croy I added/updated the following sample
    headers.
    
    cache-control: public, max-age=2592000
    expires: Thu Jul 24 2014 17:16:14 GMT-0700 (PDT)
    Arr-Disable-Session-Affinity: True
    brianhanifin committed Jun 25, 2014
    Configuration menu
    Copy the full SHA
    230844c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    13386e6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6696937 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d4372ba View commit details
    Browse the repository at this point in the history
  5. Reworked to support Express.

    Upgraded from node-static to Express, and now the site caches like a
    champ!
    brianhanifin committed Jun 25, 2014
    Configuration menu
    Copy the full SHA
    885f0cb View commit details
    Browse the repository at this point in the history
  6. Full Caching with Express,

    Upgraded from node-static to express.
    brianhanifin committed Jun 25, 2014
    Configuration menu
    Copy the full SHA
    27be039 View commit details
    Browse the repository at this point in the history
  7. Upgraded from node-static to Express,

    and now the site caches like a
    champ!
    brianhanifin committed Jun 25, 2014
    Configuration menu
    Copy the full SHA
    3555f73 View commit details
    Browse the repository at this point in the history
  8. put everything in a static directory

    Tested by deleting everything, running npm install from scratch.
    This helps ensure that only the files in the static subdirectory can be served.
    Should eliminate serving config files via http.
    bewest committed Jun 25, 2014
    Configuration menu
    Copy the full SHA
    59b7bca View commit details
    Browse the repository at this point in the history
  9. Merge pull request #3 from nightscout/express-cache

    move static files into /static
    brianhanifin committed Jun 25, 2014
    Configuration menu
    Copy the full SHA
    4c10967 View commit details
    Browse the repository at this point in the history
  10. Disable caching for /pebble

    and other dynamic elements.
    brianhanifin committed Jun 25, 2014
    Configuration menu
    Copy the full SHA
    34bd567 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2014

  1. Pebble class experiment.

    This isn’t used at the current time.
    brianhanifin committed Jun 26, 2014
    Configuration menu
    Copy the full SHA
    a0a9a02 View commit details
    Browse the repository at this point in the history
  2. Fixed "expires:" header format error.

    Added “dateformat” package. Plus some code reorganization.
    brianhanifin committed Jun 26, 2014
    Configuration menu
    Copy the full SHA
    53d9b7e View commit details
    Browse the repository at this point in the history
  3. Fixed "expires:" header format error.

    Added “dateformat” package. Plus some code reorganization.
    brianhanifin committed Jun 26, 2014
    Configuration menu
    Copy the full SHA
    4f5c4e6 View commit details
    Browse the repository at this point in the history
  4. Fixed "expires:" header format error.

    Added “dateformat” package. Plus some code reorganization.
    brianhanifin committed Jun 26, 2014
    Configuration menu
    Copy the full SHA
    01349a8 View commit details
    Browse the repository at this point in the history
  5. Fixed "expires:" header format error.

    Added “dateformat” package. Plus some code reorganization.
    brianhanifin committed Jun 26, 2014
    Configuration menu
    Copy the full SHA
    6f298c3 View commit details
    Browse the repository at this point in the history
  6. Unnecessary "cache-control: public" removed.

    Adding socket.io.js to nightscout.appcache, plus a little cleanup.
    brianhanifin committed Jun 26, 2014
    Configuration menu
    Copy the full SHA
    a15f334 View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2014

  1. Configuration menu
    Copy the full SHA
    0f8e409 View commit details
    Browse the repository at this point in the history
  2. More redbot.org testing

    brianhanifin committed Jun 27, 2014
    Configuration menu
    Copy the full SHA
    d17670c View commit details
    Browse the repository at this point in the history
  3. I think it is ready!

    brianhanifin committed Jun 27, 2014
    Configuration menu
    Copy the full SHA
    3e9092e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1821568 View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2014

  1. Changing HTML5 app cache

    to only include audio, favicon, and google fonts. HTTP Header Cache
    caches all.
    brianhanifin committed Jun 28, 2014
    Configuration menu
    Copy the full SHA
    ef6e17f View commit details
    Browse the repository at this point in the history
  2. Changing HTML5 app cache

    to only include audio, favicon, and google fonts. HTTP Header Cache
    still caches all.
    brianhanifin committed Jun 28, 2014
    Configuration menu
    Copy the full SHA
    0ff2aaf View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2014

  1. Removed http: protocol from HTML5 app cache file

    so we can utilize SSL without breaking the appearance of the site.
    brianhanifin committed Jun 29, 2014
    Configuration menu
    Copy the full SHA
    b3370f1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7a024b7 View commit details
    Browse the repository at this point in the history
  3. Error handler fix.

    brianhanifin committed Jun 29, 2014
    Configuration menu
    Copy the full SHA
    5d1ba85 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    49f3161 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    290da9b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    82e2ad9 View commit details
    Browse the repository at this point in the history
  7. Removing cache test code

    brianhanifin committed Jun 29, 2014
    Configuration menu
    Copy the full SHA
    1088fcc View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2014

  1. Configuration menu
    Copy the full SHA
    d6eb615 View commit details
    Browse the repository at this point in the history
  2. use default caching from express

    Tested using curl, sending the if-modified-since header, and monitored
    using chrome.
    
    Reloads sources when they have changed, otherwise allows using cached
    version.
    bewest committed Jun 30, 2014
    Configuration menu
    Copy the full SHA
    a400b56 View commit details
    Browse the repository at this point in the history
  3. show correct time when brushing

    When adding retrospective, the brushing extent should factor in the 30
    minute offset when displaying "now".
    bewest committed Jun 30, 2014
    Configuration menu
    Copy the full SHA
    e02dd91 View commit details
    Browse the repository at this point in the history
  4. remove dead code

    bewest committed Jun 30, 2014
    Configuration menu
    Copy the full SHA
    55fb873 View commit details
    Browse the repository at this point in the history
  5. re-work audio handling

    This allows the browser to cache things better.
    Re-uses same media object across alarms.
    bewest committed Jun 30, 2014
    Configuration menu
    Copy the full SHA
    ddd66eb View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4136acb View commit details
    Browse the repository at this point in the history
  7. Merge pull request #4 from nightscout/express-cache

    Express cache
    brianhanifin committed Jun 30, 2014
    Configuration menu
    Copy the full SHA
    ac17273 View commit details
    Browse the repository at this point in the history
  8. Added alarm silence for 120 minutes

    gregwaehner authored and bewest committed Jun 30, 2014
    Configuration menu
    Copy the full SHA
    382ec34 View commit details
    Browse the repository at this point in the history
  9. tweak whitespace

    bewest committed Jun 30, 2014
    Configuration menu
    Copy the full SHA
    9727c20 View commit details
    Browse the repository at this point in the history
  10. test alert1

    brianhanifin committed Jun 30, 2014
    Configuration menu
    Copy the full SHA
    f067953 View commit details
    Browse the repository at this point in the history
  11. alert test2

    brianhanifin committed Jun 30, 2014
    Configuration menu
    Copy the full SHA
    768283d View commit details
    Browse the repository at this point in the history
  12. removed test alert

    brianhanifin committed Jun 30, 2014
    Configuration menu
    Copy the full SHA
    ac5263e View commit details
    Browse the repository at this point in the history
  13. HTML App Cache: removed .css and .js files.

    Caching these files this aggressively is trouble. :)
    brianhanifin committed Jun 30, 2014
    Configuration menu
    Copy the full SHA
    004653c View commit details
    Browse the repository at this point in the history
  14. fix now-line placement

    Fix now-line placement to be sensitive to when panning is or isn't
    being used.
    
    This allows fixes a problem where the now-line was off by ten minutes.
    bewest committed Jun 30, 2014
    Configuration menu
    Copy the full SHA
    0394b54 View commit details
    Browse the repository at this point in the history
  15. alert test1

    now testing on azure
    brianhanifin committed Jun 30, 2014
    Configuration menu
    Copy the full SHA
    f47a76f View commit details
    Browse the repository at this point in the history
  16. test 2

    on azure
    brianhanifin committed Jun 30, 2014
    Configuration menu
    Copy the full SHA
    c215969 View commit details
    Browse the repository at this point in the history
  17. client.js change test successful

    on both Azure and Heroku!
    brianhanifin committed Jun 30, 2014
    Configuration menu
    Copy the full SHA
    9c1a879 View commit details
    Browse the repository at this point in the history
  18. manually bust cache

    A number of people using recent sources experimenting with
    caches will need to bust the cache at least once.  While we have
    correct caching implemented now, the previous caching
    implementation requires one busting in order to clear things
    through.
    bewest committed Jun 30, 2014
    Configuration menu
    Copy the full SHA
    514718f View commit details
    Browse the repository at this point in the history
  19. Merge pull request #5 from nightscout/express-cache

    Express cache
    brianhanifin committed Jun 30, 2014
    Configuration menu
    Copy the full SHA
    97ca423 View commit details
    Browse the repository at this point in the history
  20. README: Build & Dependancies

    moved to watch the community branch.
    brianhanifin committed Jun 30, 2014
    Configuration menu
    Copy the full SHA
    1b77f74 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2014

  1. Removing unused library

    brianhanifin committed Jul 1, 2014
    Configuration menu
    Copy the full SHA
    3f5fbec View commit details
    Browse the repository at this point in the history
  2. Removing unnecessary packages

    nightscout.appcache is now a static file in /static
    brianhanifin committed Jul 1, 2014
    Configuration menu
    Copy the full SHA
    8c4016f View commit details
    Browse the repository at this point in the history
  3. actually show bgdelta

    The first bgdelta was always 0, which is incorrect.
    This allows the first item to have a delta.
    bewest committed Jul 1, 2014
    Configuration menu
    Copy the full SHA
    ae83e21 View commit details
    Browse the repository at this point in the history
  4. get sign in bg delta correct

    bewest committed Jul 1, 2014
    Configuration menu
    Copy the full SHA
    be57b35 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #6 from nightscout/express-cache

    bgdelta also
    brianhanifin committed Jul 1, 2014
    Configuration menu
    Copy the full SHA
    5cee972 View commit details
    Browse the repository at this point in the history
  6. Removing audio.load() per bewest's request

    … it was unnecessary.
    brianhanifin committed Jul 1, 2014
    Configuration menu
    Copy the full SHA
    431e95c View commit details
    Browse the repository at this point in the history