In <[EMAIL PROTECTED]>, "Dave Atkins" 
<[EMAIL PROTECTED]> writes:
> We have a custom 404 error redirection script which takes users to the home
> page when a page is not found. Unfortunately, if an image is broken on a
> page, the browser's request for that image results in calling the script
> which then generates a hit to the home page by doing a response.redirect.
> The user (fortunately) does not see this, but it generates a lot of bogus
> page views.
> ...
> 2) Any ideas on what the 404 script *should* return for a broken image?
> NULL? response.write " "?

The script should return an image, for example a 1x1 clear.gif, which will 
generally prevent the problem from being visible on the page (unless the image 
was navigational rather than decorative, in which case your users will tell you
anyway :-))

As a rule of thumb, always return an object matching the major MIME type of the
requested object, for example an audio file for any audio/* request, a video 
for any video/* request, an empty text file for Javascript or CSS requests etc.

-- 
Klaus Johannes Rusch
[EMAIL PROTECTED]
http://www.atmedia.net/KlausRusch/
+------------------------------------------------------------------------
|  This is the analog-help mailing list. To unsubscribe from this
|  mailing list, go to
|    http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
|  List archives are available at
|    http://www.mail-archive.com/[email protected]/
|    http://lists.isite.net/listgate/analog-help/archives/
|    http://www.tallylist.com/archives/index.cfm/mlist.7
+------------------------------------------------------------------------

Reply via email to