开发者

The following resources are missing a cache expiration How to set cache expiration for javascript file?

开发者 https://www.devze.com 2023-01-05 14:35 出处:网络
net application. I\'m using external javascript files in my application. When I test my site with page speed tool from google it says that following resources are missing a cache开发者_C百科 expiratio

net application. I'm using external javascript files in my application. When I test my site with page speed tool from google it says that following resources are missing a cache开发者_C百科 expiration. also some of the images and css files.

Can you give me please some examples how to set it and where exactly I need to set it.


you can find what you are looking for right here: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/0fc16fe7-be45-4033-a5aa-d7fda3c993ff.mspx?mfr=true

Setting the expiration data on files will "order" the browser to save those in cache for X amount of days. you can set this header on File/Folder

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号