Results 1 to 4 of 4

Thread: caching (asp/html)

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    343

    Angry 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

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    VB Code:
    1. 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.

  3. #3
    Fanatic Member Ianpbaker's Avatar
    Join Date
    Mar 2000
    Location
    Hastings
    Posts
    696
    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!

  4. #4
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    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
  •  



Click Here to Expand Forum to Full Width