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

Enable HTTP caching (adds Cache-Control and Vary headers, changes some APIs from POST to GET, replaces time= with tz=) #320

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Commits on Dec 4, 2021

  1. Enable HTTP caching for Count and Latest APIs

    Static JavaScript assets (unless the admin changes settings)
    get 0:30–24:00 hour freshness with async revalidating.
    
    The related API responses get 2–58 second freshness, with caches
    retaining stale data for up to 5 min on server errors.
    da2x committed Dec 4, 2021
    Configuration menu
    Copy the full SHA
    9d01aa7 View commit details
    Browse the repository at this point in the history
  2. Add HTTP Vary caching hints

    HTTP request headers that influence the response needs to go in
    the Vary response header.
    da2x committed Dec 4, 2021
    Configuration menu
    Copy the full SHA
    cedc888 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b154ee4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7b2719b View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2021

  1. Handle client time zones instead of deferring tz from time stamp

    Replaces time request argument containing the client's current
    time with tz containing their time zone offset. Better for caching.
    
    Properly handles time zone-adjusting dates and time. Times are no
    longer off by up to a minute.
    da2x committed Dec 5, 2021
    Configuration menu
    Copy the full SHA
    d717035 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    103b5e9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    788ea35 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7668832 View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2021

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