缓存JavaScript文件 [英] caching JavaScript files

查看:111
本文介绍了缓存JavaScript文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

哪种方法可以让浏览器使用缓存版本的js文件(来自服务器端)?

Which is the best method to make the browser use cached versions of js files (from the serverside)?

推荐答案

看看雅虎!提示: https://developer.yahoo.com/performance/rules.html#expires

Google还提供了一些提示: https://developers.google.com/speed/docs/insights/LeverageBrowserCaching

There are also tips by Google: https://developers.google.com/speed/docs/insights/LeverageBrowserCaching

这篇关于缓存JavaScript文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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