Readme

Compress Response

Isn't it cool that browsers can natively decompress stuff? There are a couple of supported compression algorithms: gzip (used below), compress, deflate, br.

Learn more: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding

If you don't add the content-encoding header, the gzip result looks like:

���������
���.���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������YDA��"��

Which is incredibly short for a 500kb string! (Which shouldn't be surprising because it's just "hi" 250k times)

Code
HTTP
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
Comments
Nobody has commented on this val yet: be the first!