利用浏览器缓存我的CSS和js文件 [英] Leverage browser caching for my CSS and js files
本文介绍了利用浏览器缓存我的CSS和js文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
任何人都可以帮我在我的css和js文件上添加缓存,这些文件将在1周后过期。 (asp.net)
以下可缓存资源的生命周期很短。为以下资源指定将来至少一周的到期时间:
CSS和JS文件的
:
谢谢......
我尝试过:
i am仍在搜索但尚未得到任何合适的答案。
Hi All,
Can anybody help me to add caching on my css and js files that will expire after 1 week. (asp.net)
The following cacheable resources have a short freshness lifetime. Specify an expiration at least one week in the future for the following resources:
for CSS and JS File:
Thanks...
What I have tried:
i am still search it but didn't get any suitable answer yet.
推荐答案
在2秒内在Google上找到..
配置IIS 7输出缓存| Microsoft Docs [ ^ ]
Found within 2 seconds on Google..
Configure IIS 7 Output Caching | Microsoft Docs[^]
这篇关于利用浏览器缓存我的CSS和js文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文