已加载的模块,再次 use 时,在 Firefox 新版本里会发一个请求 #250

Closed
lifesinger opened this Issue Jul 4, 2012 · 1 comment

Projects

None yet

1 participant

@lifesinger
Member

小鱼反馈。测试代码如下:

<script src="sea.js"></script>
<script src="a.js"></script>

<script>
// 居然会发一个请求
seajs.use('./a')
</script>

好像是从本地 cache 中读的,但理论上也不应该发送。

@lifesinger
Member

是 a.js 里的 id 和真实路径不匹配导致的

@lifesinger lifesinger closed this Jul 4, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment