Skip to content
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

Process Link header for cache requirements. #43

Merged
merged 4 commits into from Sep 3, 2021
Merged

Conversation

twifkak
Copy link
Collaborator

@twifkak twifkak commented Sep 2, 2021

Parse and transform the Link header to meet the Google SXG Cache requirements
at https://github.com/google/webpackager/blob/main/docs/cache_requirements.md.

Directives are omitted if they have an invalid rel or crossorigin or an unknown
param name. Hrefs are converted to absolute URLs. Preloads are limited to 20.
imagesrcset and imagesizes are not yet validated.

A future commit will compute header-integrity and add appropriate
allowed-alt-sxg directives.

Addresses #13.

Parse and transform the Link header to meet the Google SXG Cache requirements
at https://github.com/google/webpackager/blob/main/docs/cache_requirements.md.

Directives are omitted if they have an invalid rel or crossorigin or an unknown
param name. Hrefs are converted to absolute URLs. Preloads are limited to 20.
imagesrcset and imagesizes are not yet validated.

A future commit will compute header-integrity and add appropriate
allowed-alt-sxg directives.
sxg_rs/src/http_parser/link.rs Outdated Show resolved Hide resolved
sxg_rs/src/http_parser/link.rs Outdated Show resolved Hide resolved
twifkak and others added 3 commits September 2, 2021 17:58
Co-authored-by: Boxiao Cao <9083193+antiphoton@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants