Skip to content

Commit

Permalink
Added Link header preload to README
Browse files Browse the repository at this point in the history
  • Loading branch information
eko committed Mar 15, 2017
1 parent a69bfe1 commit 0c4cc8f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -89,6 +89,16 @@ app.ListenHttp2("./fullchain.pem", "./privkey.pem")

Of course, you will have to precize SSL certificate and private key.

You can also set `Link` headers in order to preload assets:

```
response := c.GetResponse()
response.Header().Add("Link", "</assets/img/rocket.png>; rel=preload")
response.Header().Add("Link", "</assets/css/style.css>; rel=preload")
```


Templating
----------

Expand Down

0 comments on commit 0c4cc8f

Please sign in to comment.