Issue metadata
Sign in to add a comment
|
script type=module and link rel=preload do not cache match, thus loading the file multiple times
Reported by
samcc...@gmail.com,
Sep 29 2017
|
||||||||||||||||||||||||
Issue description
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
Steps to reproduce the problem:
index.html
<html>
<link rel="preload" as="script" href="magic.js"/>
<link rel="preload" as="script" href="index.js"/>
<body></body>
<script type="module" src="index.js"></script>
</html>
index.js
import {magic} from './magic.js'
magic();
magic.js
export function magic() {
console.log('magic!');
}
look at the network panel
What is the expected behavior?
the scripts are only loaded once (link rel preload tags)
What went wrong?
the scripts are loaded multiple times
Did this work before? N/A
Chrome version: 61.0.3163.100 Channel: stable
OS Version: OS X 10.12.5
Flash Version:
,
Sep 29 2017
,
Sep 29 2017
reproduces in 63.0.3226.0
,
Sep 29 2017
,
Oct 11 2017
Sakamoto-san, can you take a look?
,
Oct 11 2017
This is still an issue, tracked at bug 740886 . |
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by paulir...@chromium.org
, Sep 29 2017