Skip to content

HTTP Compression: Compressing Files, How Low Can You Go?

Posted: February 23rd, 2010 | Filed under: IIS & HTTP, Performance Tools | Tags: , , , , , , , ,

HTTP compression on IIS is easy to enable with tools such as httpZip or ZipEnable and requires no client-side configuration to obtain benefits, making it a very smart way to get extra performance and a better user experience.

It’s well known that there is a limited amount of bandwidth on most Internet connections and anything IT administrators can do to accelerate site load time benefits not only the organization, but users as well. HTTP compression, a function built into both browsers and servers, can substantially improve site performance by reducing the amount of time required to transfer data between the server and the client. When data is encoded using a compressed format like GZip or Deflate, it introduces complexity into the HTTP request/response interaction by necessitating a type of content negotiation. This content negotiation communicates with the browser, deciding if it can or cannot handle the compressed data and sends the appropriate version of the resource to the browser.

Why use server side compression?

Most users’ knowledge of compression comes from compressed files such as .zip format that they download, extract, and open. However, compression can be used passively as well to compress documents as they are being transferred to a client’s browser. Because it’s a passive process, the server can reduce the size of the pages sent, consequently reducing the download time for users and their bandwidth usage.

You can typically reduce an HTML document to less than half of its original size, (the exact percentage saved will depend on the degree of redundancy or repetition in the character sequences in the file) saving the amount of time the client needs to download the page as well as the amount of bandwidth required. This can be accomplished without changing the way the site works, its page layout and content remain the same, the only thing that changes is the way the information is transferred between server and browser.

Keep in mind that when looking at overall savings on a site, compression rates of less than half the size may be counterbalanced by the presence of image MIME types that cannot usefully be compressed.

Acceptable File Types

Some file formats are not able to be compressed further. For instance, files that are already compressed, such as JPEGs, GIFs, PNGs, movies, and ‘packaged content’ (e.g., Zip, Gzip, and bzip2 files) are not going to compress significantly further with a simple HTTP compression filter. Therefore, you are not going to get a noticeable benefit from compressing these files.

If bandwidth savings is the primary goal, the strategy should be to compress all text-based output. Ideally, this should include not only static text files (such as HTML and CSS), but files that produce output in text media MIME types (such as ASP and ASP.NET files), as well as files that are text-based but of another media type (such as external JavaScript files). Heavily formatted pages, for example those that make heavy use of tables (repetitive formatting content) may compress even further, sometime to as little as one-third of the original size.

What tool works the best for you?

On Microsoft IIS 4 and 5 Web servers, httpZip is the best solution for compression as it addresses a number of shortcomings in functionality, customization, and reporting on Windows 2000 that gave rise to a third party tools market. httpZip is also ideal in certain cases on IIS 6.0. However, with the launch of Windows Server 2003 and IIS 6.0, Microsoft chose to make compression functionality a priority, and their internal IIS 6.0 compression software works — though you must delve into the IIS metabase to manage it beyond a simple “on/off” decision (and there is no browser compatibility checking). You should use ZipEnable to safely unlock and greatly enhance the configuration and management options for IIS 6.0 built-in compression.

/ Port80

No Comments »

Tally Ho and Onward to 2010

Posted: December 15th, 2009 | Filed under: IIS & HTTP, Performance Tools, Web Security Tools

2009 has proven to be a busy year of product development for Port80 Software, and we don’t see 2010 being any less productive. We have launched major upgrades and improvements in our tools such as added IIS 7/7.7 support to both CacheRight, our popular caching program, and LinkDeny, our easy to use anti-hotlinking tool.  We’ve also seen point upgrades filled with new features and usability improvements to httpZip, ServerMask, ZipEnable, and ServerDefenderAI.

The future looks bright at Port80 with a major httpZip update with IIS 7/7.5 and Windows 2008 support in early 2010. ServerDefenderVP, our new powerful Web Application Firewall is in its final shakedown as you read this.  By the time you are back to work it might be already out or very shortly after, in time for you to deal with your New Year’s resolution to really lock your Web site/application down.

We look forward to continuing to provide our customers with the professional tools they have come to expect and the device compatibly they can use. We wish all of our clients a happy holiday and a very productive and profitable New Year.

Thank you for your continued patronage.

From all of us at Port80

No Comments »

What is Cache Control?

Posted: November 16th, 2009 | Filed under: Performance Tools, Web Design, Development, & Usability | Tags: , ,

What is Cache Control?

Cache control is not to be confused directly with caching itself, which is generally a special high-speed storage mechanism that can be either a reserved section of main memory or an independent high-speed storage device. Cache control is also different from caching in ASP.NET or PHP Web development technologies that focus on the pre-generation of DB queries so dynamic pages load faster for browsers.  Read the rest of this entry »

No Comments »

Spend Your Cache Wisely

Posted: November 16th, 2009 | Filed under: Performance Tools, Web Design, Development, & Usability | Tags: , , ,

Spend Your Cache Wisely
Understanding Caching and Cache Control

Cache, not to be confused with “cash”, isn’t something to be spent down at the local market or every time someone loads your page for that matter. Effective cache control involves managing the freshness and frequency of your page loads. The basic idea behind caching is simple. Instead of wasting efforts by re-downloading a resource every time it is needed, keep a local copy, and reuse it for as long as it is still valid. Read the rest of this entry »

No Comments »

HTTP Compression : Smaller, Faster… Better

Posted: August 17th, 2009 | Filed under: IIS & HTTP, Performance Tools, Web Design, Development, & Usability | Tags: , , , ,

What is HTTP compression and how does it work?

HTTP compression is a long-established Web standard in which a GZip or Deflate encoding method is applied to the payload of an HTTP response, significantly compressing the resource before it is transported across the Web.

When data is encoded using a compressed format like GZip or Deflate, it introduces complexity into the HTTP request/response interaction by necessitating a type of content negotiation. Whenever compression is applied, it creates two versions of a resource: Read the rest of this entry »

No Comments »