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

更改waifu-tips.json不生效 #142

Open
adogecheems opened this issue Jul 12, 2023 · 5 comments
Open

更改waifu-tips.json不生效 #142

adogecheems opened this issue Jul 12, 2023 · 5 comments

Comments

@adogecheems
Copy link

adogecheems commented Jul 12, 2023

我使用自托管的cdn存放live2d-widget项目,看板娘显示是正常的,但是更改了waifu-tips.json后,没有按预期工作,仍然是以前的对话。
我的autoload.js:https://file.akiss.eu.org/live2d-widget/autoload.js
waifu-tips.json:https://file.akiss.eu.org/live2d-widget/waifu-tips.json
文件都是正常的。
autoload.js被cloudflare压缩过,可能可读性不是很高
绝对没有缓存影响,每次测试cdn与本地缓存都清理过

@adogecheems
Copy link
Author

我的网站:https://blog.akiss.eu.org

@stevenjoezhang
Copy link
Owner

你这个 https://file.akiss.eu.org/live2d-widget/waifu-tips.json 和默认的是一样的啊?你更改了什么?

@adogecheems
Copy link
Author

我昨天不小心回了个档,把文件刷掉了,现在是新文件。
但是之前用浏览器直接访问是更改后的内容,那时仍然没有生效。
现在是新文件了

@stevenjoezhang
Copy link
Owner

stevenjoezhang commented Jul 13, 2023

除了清理缓存,你可以直接开控制台看加载的json文件内容是不是新的

@adogecheems
Copy link
Author

问题解决了,是cors策略的原因
但这就很tm邪门,只有一开始会提示缺少cors标头(看板娘不说话),后面居然连错都不报,而是自己回到了以前的waifu-tips.json,它怎么回去的?

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

No branches or pull requests

2 participants