Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

Preload + SRI compatibility #137

Merged
merged 4 commits into from
Jun 21, 2019
Merged

Conversation

domfarolino
Copy link
Member

@domfarolino domfarolino commented Jun 14, 2019

This PR addresses the compatibility between link rel=preload defined in the specification, and subresource integrity defined in SRI as much as it can, before the preload cache infrastructure is fully-specified (discussed here).

Corresponding HTML Standard change: whatwg/html#4699 (I think we should block merging this until the HTML PR lands).

/cc @kinu @nyaxt @yutakahirano

Closes #127


Preview | Diff

index.html Outdated
<p>Once a <dfn>preload resource has been obtained</dfn>, the user agent
must add request to fetch group's response cache.</p>
<p>Once a preload resource <a data-cite="!HTML#process-the-linked-resource">has been processed</a>,
the user agent must add the response to the fetch group's response cache. The user agent
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure when the "fetch group's response cache" phrasing was added, but I don't think it's a thing nowadays...
@igrigorik - do you happen to remember?

Maybe it would be better to make it explicitly vague in the meantime until we define a proper preload cache, and just call it "cache"?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd be ok with that, though I think I'd prefer the term "preload cache" since I feel it'd be good to distinguish it from the HTTP cache while the preload cache isn't fully specified. Do you have a preference? (Regardless, yeah I'm not sure what "fetch group's response cache is").

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"preload cache" SGTM!

Copy link
Contributor

@yoavweiss yoavweiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM % comments regarding cache renaming

@domfarolino
Copy link
Member Author

Should be all good to go

@yoavweiss yoavweiss merged commit e430fe4 into w3c:gh-pages Jun 21, 2019
@yoavweiss
Copy link
Contributor

Thanks! :)

@domfarolino domfarolino deleted the preload-sri branch June 24, 2019 08:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Preload and SRI
2 participants