GithubHelp home page GithubHelp logo

Comments (3)

sgratzl avatar sgratzl commented on August 15, 2024

this is very important in my opinion since it significantly down the COVIDast map.

see also e.g., https://medium.com/@ali.dev/how-to-setup-caching-gzip-compression-in-apache-web-server-with-htaccess-292a0f689553

https://httpd.apache.org/docs/2.4/mod/mod_brotli.html

in this case https://github.com/cmu-delphi/delphi-epidata/blob/main/src/server/.htaccess would be a start to configure that

from delphi-epidata.

capnrefsmmat avatar capnrefsmmat commented on August 15, 2024

Surprise! delphi.cmu.edu seems to be served by nginx 1.16.1, not Apache, but the map API endpoints are on Apache. I submitted #171 to fix the htaccess for those.

In the nginx config on delphi.cmu.edu we just need to add

gzip on;
gzip_types application/json;

to the appropriate server block. Pinging @korlaxxalrok. I think this will speed up queries to signals like DV, which can be 200+ kB per day of data. According to a random online checker tool I found, one example day can be compressed to only 14 kB. (Seems implausible, but if random website tools can't be trusted, who can?)

from delphi-epidata.

capnrefsmmat avatar capnrefsmmat commented on August 15, 2024

Fixed in #191.

from delphi-epidata.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.