Buffering is on by default in IIS 5

You can speed up ASP by adding the following statement at the beginning of an ASP page:

Response.Buffer = True

This statement must be executed before any HTML text is sent to the client. When buffering is on, ASP sends data to the client browser only when the page has been processed, or when it encounters a Response.Flush statement. This often delivers better overall performance, even though the user might perceive a worse apparent speed, because the browser won’t be able to render the HTML until the page has completed its processing.

There are other reasons for enabling buffering. For example, a few methods and properties of th Response object – most notably, the Cookies collection, the AddHeader method, and the Status property – work only if no HTML has been sent to the client, therefore you must enable buffer if you want to use in the middle of the ASP page, when some HTML has been already produced.

Unlike IIS4, buffering is on by default under IIS5. This means that you don’t need an explicit Response.Buffer = True statement at the beginning of every ASP page, and that your previous IIS4 application will run faster without any change in the code.

However, there is a gotcha: if you upgrade from IIS4 to IIS5 under Windows 2000, buffering might still be False by default. This means that, for example, if you test your site on your local IIS5 machine and then move it to the production server (another IIS5, but with another default buffer setting) your ASP application might not work as expected. The bottom line is: if you want to be absolutely sure that your ASP application works on any IIS5 installation you should explicitly add a Response.Buffer = True statement.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

The Latest

homes in the real estate industry

Exploring the Latest Tech Trends Impacting the Real Estate Industry

The real estate industry is changing thanks to the newest technological advancements. These new developments — from blockchain and AI to virtual reality and 3D printing — are poised to change how we buy and sell homes. Real estate brokers, buyers, sellers, wholesale real estate professionals, fix and flippers, and beyond may

man on floor with data

DevX Quick Guide to Data Ingestion

One of the biggest trends of the 21st century is the massive surge in internet usage. With major innovations such as smart technology, social media, and online shopping sites, the internet has become an essential part of everyday life for a large portion of the population. Due to this internet

payment via phone

7 Ways Technology Has Changed Traditional Payments

In today’s digital world, technology has changed how we make payments. From contactless cards to mobile wallets, it’s now easier to pay for goods and services without carrying cash or using a checkbook. This article will look at seven of the most significant ways technology has transformed traditional payment methods.