Skip to content

Commit 75f3e47

Browse files
authored
Compress CSV responses from the API
#210 added format=csv, but these responses are not currently compressed like JSON responses are. I'd like to switch to CSV format in the R client, so compression is important to add here.
1 parent 2c41c8e commit 75f3e47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server/.htaccess

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ Header set Access-Control-Allow-Origin "*"
33

44
# Compress API responses
55
<IfModule mod_deflate.c>
6-
AddOutputFilterByType DEFLATE application/json
6+
AddOutputFilterByType DEFLATE application/json text/csv
77
</IfModule>
88
<IfModule mod_brotli.c>
9-
AddOutputFilterByType BROTLI_COMPRESS application/json
9+
AddOutputFilterByType BROTLI_COMPRESS application/json text/csv
1010
</IfModule>
1111

1212
# Allow brief caching of API responses

0 commit comments

Comments
 (0)