SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard westmich's Avatar
    Join Date
    Mar 2000
    Muskegon, MI
    0 Post(s)
    0 Thread(s)
    As a newbie to ASP, I have emerced myself in a couple books. The Sam's 24hr (I don't recommend) has me put a header at the begining of each script in a page.
    Option Explicit
    Response.Expires = 0
    The option explicit is supposed to force the IIS to check for variable declaration. It decreases performance so Sam says to take it out after testing. The response is supposed to keep my page from cacheing, but doesn't really go into any detail as for why this good. I would think that this would also decrease performance and create headaches down the road.

    These practices aren't mentioned as far as I know in the other book. Are they standard? Are they a good or bad idea?
    Smart Web Solutions for Smart Clients

  2. #2
    Just Blow It bronze trophy
    DaveMaxwell's Avatar
    Join Date
    Nov 1999
    Mechanicsburg, PA
    123 Post(s)
    1 Thread(s)
    I don't know much about the response.expires, but I do know that the option explicit will degrade performance slightly and should be used mostly in testing. It just makes sure you've dimmed all of your variables, which will INCREASE speed because it is slower to create variables on the fly. Once you get a clean run, it's a good idea to comment out the option explicit if not in testing mode....
    Dave Maxwell - Manage Your Site Team Leader
    My favorite YouTube Video! | Star Wars, Dr Suess Style
    Learn how to be ready for The Forums' Move to Discourse


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts