阅读背景:

如何在不更改文件的时间戳的情况下将缩小的Javascript文件部署到Web服务器?

来源:互联网 

We have several hundred javascript files in our app that are currently being served uncompressed. One piece of our solution to gain a little more client performance is to minify our javascript files. I've created an automated solution to do this on the build, however, when these new files are deployed, the files' timestamp that determines if it will be resent to the client will be changed. This means, that on every future release, all the javascript files will have a new timestamp. our clients will redownload ALL the minified javascript files again, and thus defeating the performance aspect of minification.We have several hundred javascript files in our




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: