开发者

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

开发者 https://www.devze.com 2023-02-03 12:23 出处:网络
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

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

精彩评论

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

关注公众号