alibaba / alibaba/ice

子应用配置了cached参数,好像无效,还是会重新请求 js 和 css 文件

Open
#6,876 0 comments 0 reactions 0 assignees View on GitHub
bug PR Welcome
Dominant language
TypeScript
Stars
18.6k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug

getApps里返回
```js
[
{
name: 'aaaa',
activePath: '/aaaa',
title: 'aaa',
cached: true,
url: ['aaa.js', 'aaa.css'],
},
{
name: 'bbbb',
activePath: '/bbbb',
title: 'bbb',
cached: true,
url: ['bbb.js', 'bbb.css'],
},
]
```
然后切换路由activePath,都会重新拉取对应的url

### Expected behavior

不重新获取url里的链接

### Actual behavior

_No response_

### Version of ice.js

3.4.7

### Content of build.json or ice.config.mts

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the getApps configuration and follow how cached and url are handled when activePath changes; the issue provides no file or test entry point. Reproduce the route switch on ice.js 3.4.7, then verify that each app’s configured JavaScript and CSS URLs are not fetched again after caching is enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.