profile
viewpoint

Ask questionsAdd gzip (or similar) to data_latest.json

The server serving data_latest.json is not sending out a compressed file, which would reduce the current data file request (as I write) from 575K to something more like 54K.

PublicHealthEngland/coronavirus-dashboard

Answer questions acme

For example, https://c19downloads.azureedge.net/downloads/data/data_latest.json includes many

{"date": "2020-04-02", "value": 652}

... which could instead be:

{"date":"2020-04-02","value":652}

ECMA-404 The JSON Data Interchange Standard says:

Insignificant whitespace is allowed before or after any token

Parsing JSON is a Minefield, but all parsers should be able to handle parsing without that insignificant whitespace.

Compressing the response with gzip will save more bandwidth.

useful!

Related questions

No questions were found.
Github User Rank List