#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2004
    Posts
    2
    Rep Power
    0

    404 error performance hit?


    By way of tracking users as they travel within my site (there will be several site sections within one .swf, which won't show in the server logs) I am trying to load .swf files that don't actually exist on the server. I could create empty .swf files to match the URL's I call, but this would present me with extra work, now and in the future when the area tags get changed as they inevitably will.

    This method seems to work fine for my purposes, the non-existent files show up in the server logs as expected, only with a 404 error obviously. I will be parsing the raw log files so I can easily correct this.

    What I am trying to find out, is if returning a 404 error will take more time/processing power than a basic 200? I am wondering if more effort is required in searching for the file in the directory when it doesn't exist. Maybe that sounds silly but I don't know much about the internals of the file system and don't want my application to suffer if this is a bad idea.
    Can anyone help please?
    Last edited by morkMoon; March 2nd, 2004 at 04:54 AM.
  2. #2
  3. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,444
    Rep Power
    4539
    I doubt there is any significant difference in processing, for all I know it may be faster to identify a non-existent page. Just guessing.
    ======
    Doug G
    ======
    Bartender to Rene Descartes "have another beer?" Descartes: "I think not" and he vanished.
    --Alfred Bester
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2004
    Posts
    2
    Rep Power
    0
    Thanks for your reply Doug, I hope that might be the case, plus of course there is no file being transmitted over the network which should add up over time.
    Cheers

IMN logo majestic logo threadwatch logo seochat tools logo