Skip to content
Snippets Groups Projects
  1. Mar 29, 2018
    • Richard van der Hoff's avatar
      Use static JSONEncoders · 05630758
      Richard van der Hoff authored
      using json.dumps with custom options requires us to create a new JSONEncoder on
      each call. It's more efficient to create one upfront and reuse it.
      05630758
  2. Mar 28, 2018
  3. Mar 27, 2018
  4. Mar 26, 2018
  5. Mar 23, 2018
  6. Mar 22, 2018
  7. Mar 21, 2018
    • Erik Johnston's avatar
      Add Cache-Control headers to all JSON APIs · 1c41b05c
      Erik Johnston authored
      It is especially important that sync requests don't get cached, as if a
      sync returns the same token given then the client will call sync with
      the same parameters again. If the previous response was cached it will
      get reused, resulting in the client tight looping making the same
      request and never making any progress.
      
      In general, clients will expect to get up to date data when requesting
      APIs, and so its safer to do a blanket no cache policy than only
      whitelisting APIs that we know will break things if they get cached.
      1c41b05c
  8. Mar 20, 2018
Loading