Hot answers tagged

46

@toomanyairmiles is partially correct - the purpose of this technique is to allow parrallel connections from the web-browser to the server. Web browsers should allow a minimum of two simultaneous connections to a single host, but many new browsers can manage up to 60. Regardless, concurrent simultaneous connections between browser and webserver(s) is a major ...


33

Five reasons we offer a free version of the service and always will: Data: we see a much broader range of attacks than we would if we only had our paid users. This allows us to offer better protection to our paid users. Customer Referrals: some of our most powerful advocates are free customers who then "take CloudFlare to work." Many of our largest ...


17

CloudFront with CNAMEs and HTTPS is not supported, see the first note in the CloudFront CNAME documentation. I don't think any of the low cost CDNs have support for CNAMEs and HTTPS together, to do that they would have to have some way for you to upload your unencrypted certificate to their CDN network.


13

PLEASE NOTE THE EDITS & UPDATES BELOW As of me writing this (May 23 2012), SSL is supported via the CloudFront distribution URL only. Meaning, you cannot CNAME the SSL URL. Concretely, you can reference an item via SSL as: https://[distribution].cloudfront.net/picture.jpg but not: https://cdn.mydomain.com/picture.jpg where cdn.mydomain.com is a ...


13

Aside from use of CDNs, using separate domains for static data also means: You can use a lightweight web server that doesn't have to load all the modules/extensions that your dynamic content web server has to load on every single request. Not having to scan each directory in the URI path to read .htaccess files also increases the number of simultaneous ...


12

CloudFlare, in most cases, does not cache HTML. This is because we don't want to show stale dynamic content. That said, the system can help the performance of even dynamic content in four primary ways: CloudFlare can route traffic over preferred network routes that are often more efficient than what a request would normally take. For sites that get a lot ...


12

I don't know of a compressed version out there but you might want to create a saved Google search to keep yourself updated. You could submit it to http://www.cdnjs.com and it has a shot being hosted by them for free. Also, it looks like you could get an uncompressed version from here, http://twitter.github.com/bootstrap/1.4.0/bootstrap.min.css. Finally, ...


12

Web browsers can only download two items at once, so the more you use resources hosted on external domains the faster a page loads. This applies to everything from images to javascripts. Many companies also use a CDN, a tool which ensures the end user gets their data from a server that is geographically close to them, which also increases site performance ...


12

To clarify -- yes, we offer a CNAME pointing option that is available for paid level plans (business level and above) whereby you can point CNAME records through CloudFlare while continuing to use your own DNS. That being said, we operate a global DNS network with 23 data centers, and have routinely been shown by independent groups to be #1 or #2 in terms of ...


12

Yes, it's a caching reverse proxy. "It depends". By default only things like images and CSS are cached, but you can set the cache level per zone and set Page Rules to override what is cached or should not be cached. Static HTML can be forced to be cached by a page rule, but dynamic content obviously cannot. The exception here is if you have the Business or ...


11

Definition Wikipedia says it well: A content delivery network or content distribution network (CDN) is a system of computers containing copies of data, placed at various points in a network so as to maximize bandwidth for access to the data from clients throughout the network. A client accesses a copy of the data near to the client, as ...


11

Your best solution is probably http://www.coralcdn.org or using Google's App Engine. It also depends on how much content you think will be downloaded from your site. I know Amazon Cloud Front isn't free but it does only cost $.12 per GB per month in the US. See pricing here, http://aws.amazon.com/cloudfront/#pricing.


11

Many sites have quite a lot of cookies set, these cookies have the purpose of supporting some kind of state. By putting the static (stateless) resources on a completely different domain you can reduce the size of the http requests. In some cases there are so many cookie that a single http request takes two TCP packets to be transmitted. So having a separate ...


8

We decided to use Amazon S3 when we built a web app which delivers Gigabytes of HD photos and videos to our subscribers. It was an absolute no-brainer for us. The cost savings were outrageous. We have had two service outages with S3 (along with every other web startup who uses S3). They weren't disastrous. Then we added CloudFront on top of it it just ...


8

Specifically for jQuery UI there's a MAINFEST file at http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/MANIFEST which includes paths relative to that file for the jQuery UI files. The CSS file in your example actually does exist. I'm seeing CSS at: http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/themes/base/jquery-ui.css Maybe I'm ...


8

The technology you're looking for is called Origin Pull. I'm not sure about Cloudfront specifically, but most CDNs are able to offer this.


8

No, this will not improve your ranking. Links from other websites, specifically websites with related content that rank well for the same things you hope to rank well for, help you rank better. Sharing a resource does not with SEO nor is Google Analytics used towards this purpose. Now if you provide a useful tool other websites may link to you because of it ...


8

While Imgur is an image hosting service, their service is intended for the images to be commented upon, rated and shared within that site by members of their community. Their TOS (under "Stuff not to do") does state "don't upload .. advertising (and) solicitations". Even if your e-commerce site doesn't sell products or services, the TOS also specifically ...


7

Pretty much all of Yahoo's Best Practices can be implemented without even touching the site design in any way. Minimize HTTP requests by combining all CSS into one file and all JS into one file. Use Gzip. Set good Expires headers. These rules could affect the design: Reduce the Number of DOM Elements - worth looking at, you should be able to reduce the ...


7

Gzip is probably the most drastic thing you can do. Making sure all you're css and js files are minimized helps. check that you are not loading js libraries or css that you do not need. Most users will cache these so after the first page it's not all that imprortant. Other than that make sure caching is working properly, like not re-parsing a page for ...


7

You shouldn't switch to a CDN too early. Read the update on hacked.com's experience with a CDN. If you don't have millions of visitors per day and your visitors are not distributed across a wide geography, then a CDN might slow your site down. Instead, it would be wise to plan for using a CDN at some time in the future when designing your site, but not ...


7

Justin Dorfman manages http://www.bootstrapcdn.com/ which has version 2.3.1 (at the time of editing) Complete CSS (Responsive, With Icons): //netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css Complete JavaScript //netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js GitHub Repo ...


7

I have tried this solution http://lowendtalk.com/discussion/19043/how-to-set-up-email-forwarding-for-your-domain-using-mailgun So far, it seems to work for me even though my domain is still not yet verified. (Still in the early 24-48 hours to verify the MX records etc) Basically the solution is to use mailgun and setup the email forwarding using their ...


7

No. This will not make your site faster and is unnecessary. Multiple HTTP calls slow down your website, not speed it up. To make your CSS load as fast as possible: Minify it Compress it using gzip (mod_deflate) Serve it from a CDN Once the browser has the file it will cache it and no more requests will need to be made which is as fast as it gets.


7

change your htaccess file code on resource server domain (i.e. The cdn htaccess; not the source calling the resource) <IfModule mod_headers.c> Header add Access-Control-Allow-Origin "*" </IfModule> This way domain2 is allowed to access resources on the cdn.


7

The intelligence of the blocker is down to whatever extension or software the user is using. Some will simply block adsense, while others may be configured to read a white list, or black list configuration. Typically a site with its own ad-network shouldn't be a problem unless the site is used by hundreds of thousands of people, then you may have people ...


6

I decided to employ the use of a CDN to increase the download speed of files for users across the globe. Generally speaking, delivering really small files can be done easily via nginx from a separate subdomain, as 30 milliseconds extra to grab a css won't exactly kill your web application. When it comes to delivering larger files, a CDN can really shine, ...


6

Stack Overflow (and thus by definition, this site) use http://imgur.com/ as they've just launched a brand new API. I'm not familiar with it as I haven't used it, but I had a discussion with Womble (the developer who designed it) about it and it seemed pretty neat.


6

An issue might be DNS or keep-alive -- that is, the browser already has the IP address for your server and has a connection open to it, whereas it has to resolve the CDN's server's name and then open a new connection there, and one of those or both constitute the delay you're seeing. Spriting, although still a good idea, wouldn't help those problems. ...



Only top voted, non community-wiki answers of a minimum length are eligible