开发者

how can I cache in public proxy the heavy image I use for my header (using background-image:url css property in the stylesheet)

ok this is the image.

it is certainly too big and needs cropping but it's not the point right now: http://exaggerated.com/images/site/front/header.png

in my stylesheet I use

#wrapper_inner {
width:100%;
height:auto;
float:left;
background-image:url(http://exaggerated.com/images/site/front/header.png);
background-position:top center;
background-repeat:no-repeat;
}

my question is could I put the image on a public proxy and use the new external url to 开发者_C百科serve this ressource faster for first time visitors ?


You should set HTTP headers that allow for caching, and then the user's proxy (if any) will cache the image for you. http://www.fiddler2.com/redir/?id=httpperf

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜