Last post Nov 15, 2007 06:13 PM by UbiquitousChe
Nov 14, 2007 07:58 PM|UbiquitousChe|LINK
Hey all. I'm doing the generate-lots-of-images-for-my-web-pages thing. I need my web pages to have a crapload of very similar images that have been customized on a per user basis. I'm trying to decide between two different ways of doing it.
Firstly, I can create an aspx page that will generate the image in memory every time accessed, and I can use the url of that image as the src url for my images. I'm currently thinking that this is the way to go, but I've got some doubts.
Secondly, I can generate my aspx images and store them as files on the server. I am considering this because the images will only change as often as the users modify their details, which I'm expecting to be hardly ever.
Nov 15, 2007 03:28 AM|Jean-Paul|LINK
Since you don't expect the images to change often, i'd recommend to create the images to disk.
That way you'll gain
- IIS has some caching for static files (gif, css, etc)
- when requested by the browser, IIS will respond most of the time with a "200" reply, meaning that the client already has the image.
Nov 15, 2007 06:13 PM|UbiquitousChe|LINK
Thanks. I had no idea if something like that was in place with IIS or not. :D