设置缓存过期? [英] Set cache expiration?
本文介绍了设置缓存过期?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用Chrome测试了我的网站,并得到以下建议:
I tested my site with Chrome and got the following recommendation:
The following resources are missing a cache expiration. Resources that do not specify an expiration may not be cached by browsers:
style.css
jquery.marquee.js
jquery.marquee.css
logo.png
如何设置这些文件的缓存到期日期?
How do I set the cache expiration for these files?
推荐答案
继 Yahoo!加快您的网站的最佳实践
您应该添加过期或缓存控制标题和配置ETags 。
实际上,如何配置服务器来完成此操作取决于您提供的信息远多于您在问题中提供的信息。
How you actually go about configuring the server to do this depends on far more information than you have provided in the question.
这篇关于设置缓存过期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文