
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/">
    <channel>
        <title><![CDATA[ The Cloudflare Blog ]]></title>
        <description><![CDATA[ Get the latest news on how products at Cloudflare are built, technologies used, and join the teams helping to build a better Internet. ]]></description>
        <link>https://blog.cloudflare.com</link>
        <atom:link href="https://blog.cloudflare.com/" rel="self" type="application/rss+xml"/>
        <language>en-us</language>
        <image>
            <url>https://blog.cloudflare.com/favicon.png</url>
            <title>The Cloudflare Blog</title>
            <link>https://blog.cloudflare.com</link>
        </image>
        <lastBuildDate>Mon, 06 Apr 2026 16:49:21 GMT</lastBuildDate>
        <item>
            <title><![CDATA[Prepare Your Site for Traffic Spikes this Holiday Season]]></title>
            <link>https://blog.cloudflare.com/prepare-your-site-for-traffic-spikes-this-holiday-season/</link>
            <pubDate>Mon, 17 Nov 2014 19:46:32 GMT</pubDate>
            <description><![CDATA[ The holiday season is approaching, and everyone is thinking about gifts for their friends and family. As people increasingly shop online, this means huge spikes in traffic for web sites---especially ecommerce sites. ]]></description>
            <content:encoded><![CDATA[ <p>The holiday season is approaching, and everyone is thinking about gifts for their friends and family. As people increasingly shop online, this means huge spikes in traffic for web sites---especially <a href="https://www.cloudflare.com/ecommerce/">ecommerce sites</a>. We want you to get the most out of this year’s surge in web traffic, so we’ve created a list of tips to help you prepare your site to ensure your visitors have a reliable and fast experience.</p>
    <div>
      <h3>Make sure your site can handle traffic spikes:</h3>
      <a href="#make-sure-your-site-can-handle-traffic-spikes">
        
      </a>
    </div>
    
    <div>
      <h4>1) Contact your hosting provider to understand the limits of your hosting plan</h4>
      <a href="#1-contact-your-hosting-provider-to-understand-the-limits-of-your-hosting-plan">
        
      </a>
    </div>
    <p>Even though CloudFlare offsets most of the load to your website via caching and request filtering, a certain amount of traffic will still pass through to your host. Knowing the limits of your plan can help prevent a bottleneck from your hosting plan.</p>
    <div>
      <h4>2) Reduce the number of unwanted requests to your infrastructure</h4>
      <a href="#2-reduce-the-number-of-unwanted-requests-to-your-infrastructure">
        
      </a>
    </div>
    <p>CloudFlare allows you to block IP address individually or IPs from entire regions. If you don’t want or need traffic from certain IPs or regions, you can block them using your Threat Control panel. This is useful for sites who know where their visitors usually come from.</p>
            <figure>
            
            <img src="https://cf-assets.www.cloudflare.com/zkvhlag99gkb/3s8MP4aiaRxucDbOkhJMMi/d0542918b04f81f95cdc51d6fa56476b/Screen-Shot-2014-11-14-at-2-03-26-PM.png" />
            
            </figure>
    <div>
      <h4>3) Use CloudFlare IP addresses to your advantage</h4>
      <a href="#3-use-cloudflare-ip-addresses-to-your-advantage">
        
      </a>
    </div>
    <p>Take action to prevent attacks to your site during peak season by configuring your firewall to only accept traffic from CloudFlare IP addresses during the holidays. If you only accept CloudFlare IPs, you can prevent attackers from getting to your original IP address and knocking your site offline.</p>
    <div>
      <h4>4) Ensure CloudFlare IPs are allowlisted</h4>
      <a href="#4-ensure-cloudflare-ips-are-allowlisted">
        
      </a>
    </div>
    <p>CloudFlare operates as a reverse proxy to your site so all connections come from CloudFlare IPs, so restricting our IPs can cause issues for visitors trying to access your site. The list of our IP can be found here: <a href="https://www.cloudflare.com/ips">https://www.cloudflare.com/ips</a></p>
    <div>
      <h4>5) Go beyond default caching for the fastest site possible</h4>
      <a href="#5-go-beyond-default-caching-for-the-fastest-site-possible">
        
      </a>
    </div>
    <p>By default CloudFlare <a href="https://support.cloudflare.com/hc/en-us/articles/200172516-Which-file-extensions-does-CloudFlare-cache-for-static-content-">caches static content</a> with our CDN; however, you can extend our caching by creating custom Page Rules. Under the Page Rules section of your account, you can set a pattern--either your entire website, or a section of your site--then turn on the “Cache everything” option. Creating a page rule and setting the Cache Everything option helps reduce the number of times CloudFlare has to hit your origin to download cacheable items.</p><p>Setting up a custom Page Rule like this is ideal if you have a campaign going on over the holiday season. With the Cache Everything option enabled, CloudFlare will be serving your entire site, taking the load off of your server completely, making you site as fast as possible.</p><p>Edge Cache Expire TTL and the Browser Cache Expire TTL allows you to determine how long we cache resources at our edge, and how long browsers will cache assets.</p>
            <figure>
            
            <img src="https://cf-assets.www.cloudflare.com/zkvhlag99gkb/1qlwZv5c3n2HxcBFsvSgFp/044f535a5d8180f798b2fe640f3b57c3/page-rule.png" />
            
            </figure>
    <div>
      <h3>Further suggestions for optimizing CloudFlare:</h3>
      <a href="#further-suggestions-for-optimizing-cloudflare">
        
      </a>
    </div>
    
    <div>
      <h4>1) Make sure your back-end analytics are accurate</h4>
      <a href="#1-make-sure-your-back-end-analytics-are-accurate">
        
      </a>
    </div>
    <p>To ensure visitor’s IPs show in your back-end server logs you can install mod_cloudflare to restore original visitor IP back to server logs. Our IP addresses will show up in your logs unless you install the modification to make sure you are logging the visitors’ actual IP addresses.</p>
    <div>
      <h4>2) Turn on Auto Minification to send as little data as possible</h4>
      <a href="#2-turn-on-auto-minification-to-send-as-little-data-as-possible">
        
      </a>
    </div>
    <p>Auto Minification is a method that helps your site send as little information as possible to <a href="https://www.cloudflare.com/solutions/ecommerce/optimization/">increase performance</a>. It works by taking JavaScript, CSS, and HTML and removing all comments and white spaces.</p>
            <figure>
            
            <img src="https://cf-assets.www.cloudflare.com/zkvhlag99gkb/3aOvBeekAAcIcjiNZCD2on/2aadbf3fb6bd3421453da6c16fe77e12/minify.png" />
            
            </figure>
    <div>
      <h4>3) Turn on Rocket Loader to send data in the right order</h4>
      <a href="#3-turn-on-rocket-loader-to-send-data-in-the-right-order">
        
      </a>
    </div>
    <p>Rocket Loader is an asynchronous JavaScript loader. It ensures that individual scripts on your page won’t block other content from loading, loads third party scripts in the order they are ready, and bundles all script into a single request so multiple responses can be streamed---in short, it makes your page render much faster on any device.</p><p>At a high level, Rocket Loader works like this:</p>
            <figure>
            
            <img src="https://cf-assets.www.cloudflare.com/zkvhlag99gkb/5wqhAv5VJwSzBeQRASEphv/cd283c9c7fd2de32d7e54649f2f5770b/rocket_loader_diagram-png-scaled500-1.png" />
            
            </figure>
    <div>
      <h4>4) Turn on Mirage to lazy load images</h4>
      <a href="#4-turn-on-mirage-to-lazy-load-images">
        
      </a>
    </div>
    <p><i>(Available for Pro, Business, and Enterprise plans)</i>Mirage will determine which images are visible to the end user and send those first, then other images that are off the screen will be lazy loaded as needed. This feature is especially useful for sites that with many images like most ecommerce sites</p><p>For example: if your sites has a images of seventy different t-shirts for sale, rather than having the customer wait for all seventy images to load, Mirage quickly delivers the images immediately visible to the user, then loads the rest of the images as the customer scrolls down. By having the most important images load lightning fast, the end user’s experience is improved.</p>
    <div>
      <h4>5) Turn on Polish to compress images</h4>
      <a href="#5-turn-on-polish-to-compress-images">
        
      </a>
    </div>
    <p><i>(Available for Pro, Business, and Enterprise plans)</i>Polish recompresses images to make them as small as possible in order to increase site performance.</p><p>For example: You may have images on your site that are not optimally compressed. When CloudFlare puts those images into cache it will automatically recompress them making them smaller, and allowing them to be loaded as quickly as possible. CloudFlare can <a href="https://www.cloudflare.com/learning/performance/glossary/what-is-image-compression/">compress images</a> in a lossless or lossy way.</p>
    <div>
      <h4>6) Make sure those last minute changes are seen</h4>
      <a href="#6-make-sure-those-last-minute-changes-are-seen">
        
      </a>
    </div>
    <p>If you want to make quick changes to your page and have your visitors see that change immediately, you can purge individual files from CloudFlare’s cache.</p><p>For example, if you are running a sale only for Black Friday, and you want new content displayed to your visitors, you can purge a single page so that CloudFlare will return to your origin server to fetch a new version of that page for our cache.</p><p>Please Note: if you purge your entire cache your origin will receive a flood of traffic until CloudFlare get all of your assets back into our cache.</p>
    <div>
      <h3>One last thing</h3>
      <a href="#one-last-thing">
        
      </a>
    </div>
    <p>Even if you don’t implement any of the suggestions above you are still ahead of the game by being on CloudFlare’s network. Since we have 28 data centers around the world, we bring your site close to your visitors. And since we run an Anycast network, visitors are automatically directed to the closest data center meaning that your site will be faster as the request travels over a shorter distance.</p><p>We wish you all the best this holiday season! Good luck!</p> ]]></content:encoded>
            <category><![CDATA[Speed & Reliability]]></category>
            <category><![CDATA[Holidays]]></category>
            <category><![CDATA[eCommerce]]></category>
            <category><![CDATA[Rocket Loader]]></category>
            <category><![CDATA[Mirage]]></category>
            <category><![CDATA[Cloudflare Polish]]></category>
            <category><![CDATA[AutoMinify]]></category>
            <guid isPermaLink="false">2JgfRGd3lltJN4wMWrFngF</guid>
            <dc:creator>Andrew A. Schafer</dc:creator>
        </item>
        <item>
            <title><![CDATA[An All New (and Improved) AutoMinify]]></title>
            <link>https://blog.cloudflare.com/an-all-new-and-improved-autominify/</link>
            <pubDate>Sat, 18 Jun 2011 23:35:00 GMT</pubDate>
            <description><![CDATA[ We turned on AutoMinify as a beta feature a while ago, but we weren't particularly happy with it. Originally, we did it the same way everyone else does: we'd request the resource from the origin, serve it unminified on the first load, cache it, and then... ]]></description>
            <content:encoded><![CDATA[ <p></p><p>We turned on AutoMinify as a beta feature a while ago, but we weren't particularly happy with it. Originally, we did it the same way everyone else does: we'd request the resource from the origin, serve it unminified on the first load, cache it, and then, if it was CSS or Javascript, run a process that minified it and replaced the cached version on the server. Seems sensible enough, but it's a bad approach.</p><p>To begin, this minification strategy doesn't work well for highly dynamic content, forcing website owners to have to go back and expire the cache whenever anything changed. For CSS and Javascript that can work, but it's a disaster for dynamic HTML. The second issue is less obvious: most minification resources don't work at our scale. We tried every minification library available, and a few non-public ones that were developed in-house by friends at some of the Internet giants, and none of them worked as efficiently as we wanted when we're minify many millions of files across twelve (and soon many more) data centers.</p><p>We were bummed because minification does provide some measurable benefit. Generally, for text based resources, our tests showed minification got about a 10% benefit when combined with our aggressive GZIP compression over just GZIP compression alone. All else being equal, if you can make a resource 10% as big it's as good as making the Internet connection 10% faster. It's not a huge win, since most bytes that make up the typical website aren't in text-based resources that can be minified. However, we believe every millisecond matters, so we looked for another way.</p><p>Unsatisfied with any of the existing minification resources, we decided to develop our own. Last week we quietly turned on a new minification process that was written to overcome the two challenges previous minification strategies had faced. First, it works in-line in the response stream, much like GZIP, which means it doesn't force you to cache content in order to get the benefit. Second, it's extremely fast. Written from the ground up to perform at line speed and is easily 100x as fast as the next closest competitor.</p><p>AutoMinify included free with any plan, and you can choose whether you want to <a href="https://www.cloudflare.com/learning/performance/how-to-minify-css/">minify CSS</a>, Javascipt, HTML (even dynamic HTML), or any combination of the three. You can turn Auto Minify on or off via your CloudFlare Settings control panel with a single click and the settings take effect nearly instantly (because you don't have to wait for the flawed cache-and-store approach). Next up for the engineering wizards behind this: a radically better approach to image optimization.</p> ]]></content:encoded>
            <category><![CDATA[Speed & Reliability]]></category>
            <category><![CDATA[AutoMinify]]></category>
            <category><![CDATA[JavaScript]]></category>
            <guid isPermaLink="false">2ci3BagIsyEkwSbZ2Jpxh5</guid>
            <dc:creator>Matthew Prince</dc:creator>
        </item>
    </channel>
</rss>