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

为什么next移除了main.css后面的版本号 #1308

Closed
chenyahui opened this issue Dec 11, 2019 · 5 comments
Closed

为什么next移除了main.css后面的版本号 #1308

chenyahui opened this issue Dec 11, 2019 · 5 comments
Labels

Comments

@chenyahui
Copy link

chenyahui commented Dec 11, 2019

最新版本的next是这么引用main.css的,main.css不带版本后缀了

<link rel="stylesheet" href="{{ url_for(theme.css) }}/main.css">

但是在7.4.2版本中却带的有

<link rel="stylesheet" href="{{ url_for(theme.css) }}/main.css?v={{ version }}">

出于什么考虑next移除了版本号。
因为前端往往会做缓存处理,如果main.css修改后,即使修改了版本后,前端也无法即时更新,

@welcome
Copy link

welcome bot commented Dec 11, 2019

Thanks for opening this issue, maintainers will get back to you as soon as possible!

@issue-label-bot
Copy link

Issue Label Bot is not confident enough to auto-label this issue. See dashboard for more details.

@chenyahui
Copy link
Author

<script src="/js/utils.js"></script>
<script src="/js/schemes/pisces.js"></script>
<script src="/js/next-boot.js"></script>

js也同样移除了版本号

@jiangtj
Copy link
Member

jiangtj commented Dec 11, 2019

See discussion in this PR: #963

@stevenjoezhang
Copy link
Contributor

即使修改了版本后,前端也无法即时更新

提问不成立。

@theme-next theme-next locked and limited conversation to collaborators Jan 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants