Skip to content

Instantly share code, notes, and snippets.

@Munter
Created February 19, 2014 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Munter/9098429 to your computer and use it in GitHub Desktop.
Save Munter/9098429 to your computer and use it in GitHub Desktop.
Example configuration for telling a web server what web assets should be pushed using SPDY/HTTP2 push before the corresponding .html-file is served.
{
"index.html": [
{
"path": "js/jquery.js",
"etag": "123456" // MD5-sum of file or similar hash. Maybe the erver can make this up
},
{
"path": "js/underscore.js",
"etag": "123456"
}
],
"about.html": [
{
"path": "js/timeline.js"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment