Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Optimize] Add hash tag for js and css #8156

Closed
onewe opened this issue Apr 14, 2022 · 0 comments · Fixed by #8157
Closed

[Optimize] Add hash tag for js and css #8156

onewe opened this issue Apr 14, 2022 · 0 comments · Fixed by #8157

Comments

@onewe
Copy link
Collaborator

onewe commented Apr 14, 2022

It has many same problem recently. nacos-server is added a prefix nacos when add user from nacos-console. this bug is occurred by browser‘s cache that upgrade from 1.x to 2.x version.
最近出现了很多从低版本升级到高版本导致添加用户会多一个nacos前缀,归根结底是前端缓存造成的.

a simple plan:
提供一个优化方案:

  1. js和css增加 hash tag(add hash tag for main.js and main.css)
  2. index.html 禁止缓存(index.html mustn't be cached)
onewe added a commit to onewe/nacos that referenced this issue Apr 18, 2022
- add index.html to copyList
- use index.ejs instead of index.html
- webpack enable hash

Close alibaba#8156
KomachiSion pushed a commit that referenced this issue Apr 20, 2022
* [ISSUE #8156] Add hash-tag for js and css

- add index.html to copyList
- use index.ejs instead of index.html
- webpack enable hash

Close #8156

* [ISSUE #8156] Fix context-path error in development environment

Close #8156
onewe added a commit to onewe/nacos that referenced this issue Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant