CSS和Javascript文件在生产环境中未更新 [英] CSS and Javascript files not updating in Production environment

查看:48
本文介绍了CSS和Javascript文件在生产环境中未更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

系统无法识别从暂存环境部署到生产环境的CSS和javascript文件中的任何更改.我确定我正在编辑正确的文件和路径,即使测试警报也不起作用.看来文件已被缓存,但是清除我的缓存后,仍然没有运气.我们正在使用Umbraco CMS.任何想法?我想念什么吗?

System's not able to recognized any changes in my CSS and javascript files that are deployed from staging to production environment. I'm sure that I'm editing the correct file and path, even test alert is not working. It looks like the files have been cached but after clearing my cache, still no luck. We're using Umbraco CMS. Any idea? Am I missing anything?

推荐答案

@lyka,您可以尝试在js链接上添加版本

@lyka you can try adding a version on your js links

<script src="/scripts/prechat/emea-locale-json.js?v=20160223" type="text.javascript"></script> 

这篇关于CSS和Javascript文件在生产环境中未更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆