开发者

How to set expiration of google code?

开发者 https://www.devze.com 2023-02-19 19:26 出处:网络
I host jquery from google code. Whe开发者_运维技巧n I check the site with page speed, I get this result:

I host jquery from google code. Whe开发者_运维技巧n I check the site with page speed, I get this result:

jquery-1.4.4.min.js (expiration not specified)

How can I set an expiration time for this file?


You can't. I'd instead switch to fetching jquery via the Google Libraries API: http://code.google.com/apis/libraries/devguide.html.

That service is designed for low latency and high availability: it has all the appropriate cache headers set, is served from a CDN, etc. Google Code's subversion hosting will serve the file for you, but it was designed with slightly different objectives and won't work as well for this case.

0

精彩评论

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