Skip to content

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

Closed
@onewe

Description

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions