|
-
Jul 9th, 2001, 01:35 AM
#1
Thread Starter
Hyperactive Member
caching (asp/html)
Hello,
I have a page with a MINIMAL amount of asp code (just checks the browser version) the rest of the page is HTML.
To do this(check browser) I obviously have to call it "whatever.ASP". My problem is that when it loads it takes long to load - it does not seem to be cached or something. When I take out the asp code and rename the page to .html it loads slowly the first time, but then loads extremely quickly on subsequent "loads" - I assume this is because of the caching.
How can I do this in asp. Does it have something to do with setting response.buffer = true or false!!??
Thanks,
T
-
Jul 9th, 2001, 06:28 AM
#2
Black Cat
VB Code:
Response.Expires = 30 'expires 30 minutes into the future
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Jul 9th, 2001, 07:35 AM
#3
Fanatic Member
adding on to what josh put, is that any asp page has to be evaluated by IIS before it is sent to the client, regardless if there is actually any script in it, hence the longer load period. eg. If you created a standard HTML page and just re-named it to .asp (without putting any script in ) it would still take longer to load
Ian
Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!
-
Jul 9th, 2001, 11:08 AM
#4
Frenzied Member
Unless you are using IIS 5.0 in which case the performance hit is minimized. That was true in version 4.0 and back though...
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|