Skip to content

Multiple <link rel=preload>s with the same preload key appear to cause multiple requests #10786

@domenic

Description

@domenic

What is the issue with the HTML Standard?

Reading the spec in https://html.spec.whatwg.org/#link-type-preload , I am pretty sure that

<link rel=preload as=image href=foo.png>
<link rel=preload as=image href=foo.png>

requires doing two fetches. If I am reading the Fetch spec right, the second one might even consume the preload response from the first one?

This seems like a bug. @noamr, do you agree?

I know there are more general issues around to what extent the "memory cache" is specified. But my understanding was that @noamr's work on <link rel=preload> was intended to start putting us on solid footing there. So maybe tackling just this particular case first is worthwhile.

/cc @nidhijaju

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions