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

Unexpected result visiting static resources in PROD mode #1283

Open
jiankian opened this issue Jan 15, 2020 · 5 comments
Open

Unexpected result visiting static resources in PROD mode #1283

jiankian opened this issue Jan 15, 2020 · 5 comments

Comments

@jiankian
Copy link

jiankian commented Jan 15, 2020

访问静态资源路径老是异常。访问一个静态资源路径,返回的文件不是我服务器目录的文件
同一个项目,同一个资源,Ctrl+F5也没用。加问号访问才偶尔正常?
比如访问路径,f返回一个很长的文件,而这个文件不是我需要的
WX20200115-171906
强制刷新和换浏览器无用、所以不是浏览器缓存的问题。
然后修改访问路径?v=1等字符返回我的目标期望文件
WX20200115-171924
这是fu服务器上的文件:
WX20200115-172205

这是静态资源配置路径
WX20200115-172305

w文件是rythm模板引擎模板文件生成的HTML标签里的的文件,貌似是加载的文件是加载顺序出错。可能是请求A,B两个队列,结果B队列请求到的文件内容还是A队列的请求。
WX20200115-173047

@jiankian
Copy link
Author

jiankian commented Jan 15, 2020

开发模式一切正常,就是打包以后不正常,,哎哎哎。
是不是资源静态路径一长就各种问题。不得而知了,貌似文件都是Java去加载的。

@greenlaw110
Copy link
Contributor

@jiankian 请报告一下 act 的版本, 另外请给出静态资源的链接. 谢谢

@jiankian
Copy link
Author

@jiankian 请报告一下 act 的版本, 另外请给出静态资源的链接. 谢谢

1.8.30

@jiankian
Copy link
Author

服务器控制台经常性爆出异常!未知原因。首页访问正常!
WX20200115-182149

@greenlaw110 greenlaw110 changed the title 访问静态资源路径老是异常。访问一个静态资源路径,返回的文件不是我服务器目录的文件 Unexpected result visiting static resources in PROD mode Jan 15, 2020
@greenlaw110
Copy link
Contributor

@jiankian 我们需要定位并干掉这个问题. 你能给我一个可以重现问题的项目吗?

@greenlaw110 greenlaw110 added this to the 1.8.32 milestone Feb 17, 2020
@greenlaw110 greenlaw110 removed this from the 1.8.32 milestone Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants