krischer / instaseis

Instant high-frequency seismograms from an AxiSEM database
http://instaseis.net
Other
49 stars 23 forks source link

slip / sliprate in /info #16

Closed martinvandriel closed 8 years ago

martinvandriel commented 8 years ago

to reduce size of /info we could either make slip and sliprate optional or strip them from all the trailing zeros

krischer commented 8 years ago

Already solved in 1e1b6558eac43ed5a22d18f2c37edb4f6d8f037a ;-)

Don't request gzipped data:

krischer@ten:~$ curl -s -D - http://ten:9101/info -o /dev/null | grep "Content-Length"
Content-Length: 77319

Request gzipped data:

krischer@ten:~$ curl -s -D - -H "Accept-Encoding: gzip" http://ten:9101/info -o /dev/null | grep "Content-Length"
Content-Length: 1144

No need to special case anything and it should be small enough. The zeros compress to almost nothing.

I'm writing an email right now.