Skip to content

Instantly share code, notes, and snippets.

@kwatch
Last active August 29, 2015 14:04
Show Gist options
  • Save kwatch/32eb6ab7bdecb5b4daaa to your computer and use it in GitHub Desktop.
Save kwatch/32eb6ab7bdecb5b4daaa to your computer and use it in GitHub Desktop.
http://cache.ruby-lang.org/pub/ruby/ にアクセスすると、「Accept-Encoding: gzip」をつけてないのに gzip 圧縮して送られてくる。とても困る。
~$ telnet cache.ruby-lang.org 80
Trying 103.245.222.184...
Connected to fallback.global-ssl.fastly.net.
Escape character is '^]'.
GET /pub/ruby/ HTTP/1.0
Host: cache.ruby-lang.org
HTTP/1.1 200 OK
Server: nginx/1.2.1
Content-Type: text/html
Content-Encoding: gzip ← なぜかgzip圧縮されてる
Content-Length: 3555
Accept-Ranges: bytes
Date: Tue, 05 Aug 2014 10:54:03 GMT
Via: 1.1 varnish
Age: 3189
Connection: close
X-Served-By: cache-ty66-TYO
X-Cache: HIT
X-Cache-Hits: 9
X-Timer: S1407236043.757153273,VS0,VE0
���n���=��K(���+�l�2�Z�l��W�w��]~�J�( �Ἔ�y��Ϸ���o��}~��ח��~=]?��~�~����us�C����?�����ӻ�?}{x�G��������������������ן�]]]��ů��;�k��h���qzݏ�ο|VB�p����]��o�� s���G�铜/j�i�
4��&�w'�/Z�� ��
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment