[Someone somewhere in this thread, god help us, posted the disputed URL:
http://demo:[email protected]/axis-cgi/jpg/image.cgi?resolution=
320x240&dummy=1094217750383 ]
First of all, the 'resolution' and 'dummy' bits are not data!
They are in fact variables and their existance or non existance have no
effect on that particulr cgi! They are (optionally) there as variables the
cgi can pass directly back to the browser for use by the browser.
What exactly do you mean by "pass directly back to the browser"?
If they are not there the image simply loads as the default. If they are there
they tell the browser the dimision of this image...
Whoa. Okay, after having read this over five times and stared at the URL
for a while, I think I understand what you're trying to say, but you are
saying it in a way which at best invites confusion and which more likely
will get you immediately dismissed by anyone with a clue about browsers,
webservers and URLs work.
First, no browser parses a URL like the above and determines that the
image (or whatever image.cgi induces the webserver to spew back at the
browser) is 320x240 &units; in size. Browsers might parse URL fragments
-- those little suffixes beginning with '#' - but they don't parse the
query string. If you disagree, please name a browser which does parse
the "dimision" directly from the query string above.
But I don't think that's what you're trying to say.
I suspect what you're trying to say is that the webserver uses this
information to determine the dimensions (which isn't the same as the
resolution BTW, but I digress) of the image to be returned to browser.
If that's what you're trying to say, you could well be right, but your
expression of that concept is severely lacking in clarity.
and also to reload the image and not to use the browsers cache.
Again, browsers do not parse query strings and take action: servers do.
If you're trying to say that browsers *can* cache documents returned by
GET-type requests (which they can though they don't _have_ to), that the
cache is often implemented by hashing the URL, and that using a URL with
a unique 'dummy' parameter in the query string will likely cause the
browser to submit the GET request to the server rather than fall back on
its (now broken) cache for what is otherwise the same image ... again,
you're probably right, but you're not explaining it well.
Browsers do not parse query strings, so the query string can't "tell"
the browser to *do* anything. Stating that it can will only cause
confusion.
--
Joel.
http://www.cv6.org/
"May she also say with just pride:
I have done the State some service."