首页 > 代码库 > Client Dependency学习
Client Dependency学习
Client Dependency Framework ---CDF
CDF is a framework for managing CSS & JavaScript dependencies and optimizations for your web application. 具体可以在GitHub上看到 https://github.com/Shazwazza/ClientDependency
在使用CDF进行管理的项目中,如果你更改了项目中的css或者js文件,发布项目到IIS之后,你会发现并没有起效果,还是使用以前的css或者js
这是因为CDF进行了缓存,你需要清楚它的缓存。
方法就是在ClientDependency.config文件中,更改ClientDependency的版本号
<clientDependency version="1477437561" fileDependencyExtensions=".js,.css">
另外,如果还是没有效果,就把缓存文件删除,在App_Data/TEMP/ClientDependency文件夹中
在Umbraco中,有人专门开发了一个plugin来干这个事情,叫做AutoExpireClientDependency (https://our.umbraco.org/projects/developer-tools/autoexpireclientdependency)
Client Dependency学习
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。