The HTTP protocol has made a long way since its first version HTTP V0.9 in 1991 and with the final release of the HTTP2 spec at the beginning of 2015 a whole next chapter of web development is ahead of us! After a quick tour through the protocol history, we will mine the gems from in HTTP/2 spec and see why this is an awesome step for a modern web. We will also see what you can already use today and why today's best practices are tomorrow's antipatterns.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php header('Surrogate-Control: "ESI/1.0"'); ?> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>My super simple ESI example</title> | |
</head> | |
<body> | |
<p>Hello world! This is my super simple ESI example.</p> | |
<aside><esi:include src="my-other-service.example.com/sidebar.html" /></aside> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.assets.paths << Rails.root.join(Gem.loaded_specs['rails-assets-components-font-awesome'].full_gem_path, "vendor", "assets", "fonts", "components-font-awesome", "fonts") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Librato::Metrics::Collector.new(50) do |collector| | |
collector.measure = Users.count | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2014-06-20T22:47:47.159839+00:00 app[worker.1]: | |
2014-06-20T22:47:47.159847+00:00 app[worker.1]: **** This file had errors that were repaired or ignored. | |
2014-06-20T22:47:47.159966+00:00 app[worker.1]: **** Please notify the author of the software that produced this | |
2014-06-20T22:47:47.159987+00:00 app[worker.1]: **** file that it does not conform to Adobe's published PDF | |
2014-06-20T22:47:47.160005+00:00 app[worker.1]: **** specification. | |
2014-06-20T22:47:47.160007+00:00 app[worker.1]: | |
2014-06-20T22:47:58.650510+00:00 app[worker.1]: GPL Ghostscript 8.71: Failed to interpret TT instructions for glyph index 107 of font MUFUZY+MerriweatherSans-Bold. Continue ignoring instructions of the font. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
"W-SXBYTgXhg", | |
"jofNR_WkoCE", | |
"X0DeIqJm4vM", | |
"2WNrx2jq184", | |
"JuMlHdxiIZ8", | |
"D9HvS_niU50", | |
"37ZaSINRDGM", | |
"MWUJvTyl-m4", | |
"U_hrYz_2uAk", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extend GiantSwarm::Component | |
application 'slidr.io' | |
service 'api' do | |
component 'app' do | |
image "registry.giantswarm.io/nesquick/slidrio:latest" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gs \ | |
-q -dNOPAUSE -dBATCH -dSAFER \ | |
-sDEVICE=pdfwrite \ | |
-dNumRenderingThreads=2 \ | |
-dEmbedAllFonts=true \ | |
-dSubsetFonts=true \ | |
-dDownsampleColorImages=true \ | |
-dColorImageDownsampleType=/Bicubic \ | |
-dColorImageResolution=72 \ | |
-dDownsampleGrayImages=true \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
heroku { | |
app => "your-app-0001" | |
} | |
} | |
filter { | |
grok { | |
pattern => "^%{TIMESTAMP_ISO8601:timestamp} %{WORD:component}\[%{WORD:process}(?:\.%{INT:instance:int})?\]: %{DATA:message}$" | |
} |
In our daily life we rely heavily on technology. Even as technically advanced people we don’t know every bit involved in the modern web. I will take you on an adventurous tour of browsing the web, understanding the nitty gritty details of networking, name resolution, global network providers, and the HTTP/2 protocol.
OlderNewer