-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add optional directives for Link headers #34
Conversation
4 similar comments
Thanks @SamyPesse, sorry I didn't see the notification until now. Both the Preload specification and Fastly's documentation refer to these as "attributes". How did you decide on "directive"? |
No worries :) I've focused on this sentence:
But you are right that |
@terinjokes done :) |
How does 7900bd5 look? |
👍 |
Merged as 7900bd5. Packaging it up as 1.3.0 now. |
The W3C spec defines some directives such as
nopush
: https://www.w3.org/TR/preload/#server-push-http-2And some CDNs (such as Fastly) supports it to control the behaviour of the CDN (they also support other directives such as
x-http2-push-only
).This PR adds an option
directives
to define these directives: