Control How a Page is Cached

Control How a Page is Cached

A proxy server reduces the amount of time spent retrieving documents over the Internet. It does this by caching, or storing, the document in memory and then serving it from memory the next time a client tries to retrieve the page. This can cause problems with Active Server Pages (ASP) because of their dynamic nature.

By default, Internet Information Server (IIS) sends Web pages with headers that tell proxy servers not to cache their documents. If you need to change this, you can by placing this line of code at the top of your ASP page:

 <% Response.CacheControl="Public" %>

This code will allow all proxy servers that retrieve the page to save it in their local memory and improve the speed at which it can be retrieved.

See also  5 Benefits of Using Time Tracking Software

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist