{"id":96,"date":"2017-11-21T21:18:51","date_gmt":"2017-11-21T21:18:51","guid":{"rendered":"https:\/\/beta.smarthost.eu\/blog\/?p=96"},"modified":"2019-03-15T14:51:08","modified_gmt":"2019-03-15T14:51:08","slug":"how-does-http-2-work-and-what-can-be-gained-with-it","status":"publish","type":"post","link":"https:\/\/www.smarthost.au\/blog\/how-does-http-2-work-and-what-can-be-gained-with-it","title":{"rendered":"How does http\/2 work and what can be gained with it?"},"content":{"rendered":"\n<p><strong>The\nhttp 1.x protocol &#8211; a word about history<\/strong><\/p>\n\n\n\n<p>HTTP\n1.x is a protocol that was created over 25 years ago and though\noutdated, it is still widely used on the internet.\nThe\ncurrent standard is http\/2.<\/p>\n\n\n\n<p>The\nlast important protocol update (which only the oldest dinosaurs\nremember) took place in 1997\nwhere\nfrom version 1.0 changed to 1.1.\nDo\nyou probably remember (of course only dinosaurs remember) that before\n1997, only one domain could exist on one IP address?\nOnly\nhttp\/1.1 protocol allowed so-called virtual servers (virtualhost).\n\n<\/p>\n\n\n\n<p>Nevertheless,\ncurrent websites are completely different from those known from the\n90s\nof\nthe last century.\nCurrent\nwebsites consist mostly of graphics,\ncss\nstyles and js scripts,\nthe\nactual content is only a small fraction of the content served.\nA\nlarge update was made,\nand a\nnew version of the popular HTTP protocol was created, marked as\nHTTP\/2.<\/p>\n\n\n\n<p><strong>The\nnew http\/2 protocol<\/strong><\/p>\n\n\n\n<p>Why\ndid we decide to add it to our hosting offer?\nWe\npresent a few short information about the advantages of the new\nprotocol over the old one.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\n\n\tHTTP\/2\n\tconverts queries to a binary form, which makes data transfer and\n\tdata processing faster, more effective and generates fewer errors\n\tthan using the right text.\n\t<\/li><li>\n\n\tHTTP\/2\n\tallows you to transfer multiple files and queries at the same time\n\tin contrast to HTTP1.x which accepts only one request \/ connection\n\tat a time.\n\t<\/li><li>\n\n\tHTTP\/2\n\tuses only one connection to send requests and files, which avoids\n\theavy operations such as connections being established\n\t<\/li><li>\n\n\tHTTP\n\t\/ 2 has built-in heading compression\n\twhich\n\tis another way to improve the discovery of resources from one or\n\tseveral web servers\n\t<\/li><li>\n\n\tHTTP\n\t\/ 2 allows the server to actively send required content instead of\n\twaiting for a browser request to share them\n<\/li><\/ul>\n\n\n\n<p>The\nabove changes are aimed at improving one very important parameter &#8211;\nserver\nresponse speed.\nThe\nspeed of the server&#8217;s response translates directly into the loading\ntime of web pages on end-user computers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The http 1.x protocol &#8211; a word about history HTTP 1.x is a protocol that was created over 25 years ago and though outdated, it is still widely used on the internet. The current standard<a class=\"read-more\" href=\"https:\/\/www.smarthost.au\/blog\/how-does-http-2-work-and-what-can-be-gained-with-it\">Continue reading<\/a><\/p>\n","protected":false},"author":16,"featured_media":146,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[37,35,36,38],"class_list":["post-96","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-security","tag-http-1-and-http-2-differences","tag-http-2","tag-https","tag-ssl-encryption"],"_links":{"self":[{"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/posts\/96","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/comments?post=96"}],"version-history":[{"count":1,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/posts\/96\/revisions"}],"predecessor-version":[{"id":97,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/posts\/96\/revisions\/97"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/media\/146"}],"wp:attachment":[{"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/media?parent=96"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/categories?post=96"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/tags?post=96"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}