Comments (3)
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.
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.
Fixed in #191.
from delphi-epidata.
Related Issues (20)
- Schedule regular production job restarts
- insert_or_update can have problems with multiple "issue"s
- Fix python client's user-agent version HOT 1
- update python client's CHANGELOG
- Add special case to get_real_ip_addr() for additional proxy
- Caching in python client
- Tons of new dependencies introduced in requirements for delphi-epidata (python client) HOT 9
- Consider standardizing Python client packaging
- Find all signals for a location
- Universal Revision analysis
- Update release CI in other repos
- `test_csv_uploading` hangs when running with debugger turned on
- API keys / user maintenance fixes and additions
- Remove usage of "covidcast" python client HOT 1
- Fix pip version hack in gdocs sync GH action HOT 1
- Add exception-on-error mode to python client
- Add descriptive links to other endpoint pages HOT 2
- Consider enabling flexible page width for doc site HOT 3
- Change format of other endpoints' doc pages to be like the covidcast endpoints
- List and describe field names in other endpoint return values
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from delphi-epidata.