<title>ASP 101 Http Request Sample Page</title>
<h1>ASP 101 Http Request Sample Page</h1>
This is a sample HTML page that we threw together
to illustrate doing an http request via ASP.
This file was served at: 11/19/2010 10:52:17 AM (Webserver Time)
The cached data will expire at: 11/19/2010 10:53:16 AM
The content in the box is retrieved via HTTP and is then cached for up to one minute.
As you refresh the page, pay attention to the timestamp in the returned HTML.
For comparison, it is currently: 11/19/2010 10:52:16 AM
This sample examines the caching side of things. For more details on the HTTP
request aspect of the code, see our two previous HTTP samples:
For this sample I've used a slightly modified version of the code I presented in my article:
A Simple Method for Caching HTTP Requests.
The main difference is that I calculate the expiration date/time up front in this method.
I like this verion better since there's less calculation going on with each check of whether
or not we've reached the expiration and we're also able to more easily display when the cached
data will expire.