Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Scalability of System.IO.File.Exists

Reply
Thread Tools

Scalability of System.IO.File.Exists

 
 
Brian
Guest
Posts: n/a
 
      04-11-2006
I have an ASP.NET 1.1 app that rewrites URL's. Rewriting a path to an
..aspx file that does not exist throws a nasty server-500 exception, not
a 404. One thought I had was to Server.MapPath the URL I'm about to
pass to Context.RewritePath and check it with System.IO.File.Exists. My
concern is the expense of touching the filesystem like this for each
and every request I get - is this a bad idea?

A similar question I have is forcing client-reloads of .css, .js, &
image files that have changed since the last time a client visited our
site. In a previous life we wrapped URL's like these in an object that
appended the timestamp from the file:

....src="path/styles.css"...

Would result in

....src="path/styles.css?200604101442"...

Where the text after the ? was the file's timestamp and would be enough
to cause the browser to fetch it over the wire instead of use its
cache. But again, I'd be touching the filesystem _a lot_ to get this
information - will that scale? Or, is there a better way to do this?

Thanks everyone!

-Brian

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
University of Minnesota Selects Cisco Storage Area Network for Scalability, Reliability technology_post@yahoo.com Cisco 0 03-30-2006 05:37 PM
Multithreading / Scalability Philipp Kayser Java 67 02-13-2006 05:06 PM
Performance and Scalability of JSP and ASP tharma ASP .Net 4 09-13-2005 06:04 PM
Performance and Scalability of JSP and ASP tharma Java 1 09-13-2005 05:18 AM
.Net Scalability problem Refky Wahib ASP .Net 1 08-05-2004 01:06 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57