amazon s3 - CSS image sprites loading slower through CloudFront than local -


i changed css image sprites run local cloudfront , there's noticeable lag, across pages , page reloads. ideas why might happening?

moving images localhost server (in case cloudfront) incur speed penalty (relative localhost, certainly). because great hosting service browser has send http request via internet to server, find out whether document's been modified since cached, or not (not modified: http response 304).

assuming document doesn't need downloaded again/re-cached should end of image-requests css (particularly if you're using css-sprites).

if image-sprites have re-downloaded because cache has expired, or document's changed, browser has download file again, via internet , network. , incurs cost due contention on own network/intranet, between house , neighbours between home , cabinet , whatever speed isp provides you.

whereas localhost same machine, , (likely) has response measured in milliseconds. in contrast, accessing amazon's cloudfront might take second or two, that's still order of magnitude (or more) greater.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -