[thelist] OnLoad Event to touch file on server

Jonathan Dillon jdillon at boehm-ritter.com
Fri May 6 13:06:31 CDT 2005


Sam:

Why are you doing this?  To bust the proxy cache?  Just add random strings
to the URL of your site using ASP.

I don't really understand enough about your request here to be helpful.
There are lots of reasons to do what you're doing, but I totally don't
understand your use case.

Jonathan

<original:>

I'm trying to work with a customer who (I believe) has a proxy that is 
seriously affecting page load times.   I could timestamp the page load 
time if I had an OnLoad JavaScript that would just touch an ASP file back on
my server.  If anyone has just a JavaScript, please help me out.

Another approach may be easier to code it without JavaScript, using HTML
only -- like this...

<img src="mytimestamp.asp" height="1" width="1"> </body> </html>

But:

 - this will introduce a 1 pixel layout element.  (Is there some other way
to do this without using <img> ?)

 - It is not guaranteed to load after all the other page elements (I think
the OnLoad event waits for every element to load?)

Any thoughts?  JavaScripts?  Elements other that <img>?  Better approaches?

Sam



More information about the thelist mailing list