Hear from Slack, the ACLU, TED, & more at our customer summit in San Francisco Register
LOG IN SIGN UP
Documentation

HTTP/2 server push

  Last updated May 17, 2017

Fastly recognizes link headers with the preload keyword sent by an origin server and pushes the designated resource to a client. For example, this link response header triggers an HTTP/2 push:

link: </assets/jquery.js>; rel=preload; as=script

We support multiple link headers and multiple assets in one link header:

link: </assets/jquery.js>; rel=preload; as=script, </assets/base.css>; rel=preload; as=style

If you're using an Amazon Simple Storage Service (S3) bucket as your origin server, you can still use link headers by applying a cache setting condition like this one:

set beresp.http.Link = beresp.http.x-amz-meta-Link


Additional resources:


Back to Top