Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by danesparza

8 years ago

I think this is exactly what the HTTP 'HEAD' verb is for: https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/HE...

2 comments

danesparza

Reply

oelmekki  8 years ago

Wouldn't a HEAD give the size of the zipped content, and not the size of the content once decompressed?

  • danesparza  8 years ago

    This is a great question. I'm actually not sure, since gzip encoding/decoding is built-in to several webservers and browsers.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities