Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dynamic <IMG>



On Wed, 16 Aug 2000, Ron Peterson wrote:
>I'd better confirm that this was indeed the problem before my inbox
>explodes.  :-)  I was under the mistaken impression that you only
>did this when you wanted to send an image to a browser naked and
>alone.
>
>So things work now, but not really.  Now I have to figure out why
>even dynamically generated images get cached by the browser, and
>what do I do about it.  Bleh.

Think about what happens when you do want to go to a webpage. Your
browser sends a request with a URL to the webserver to send the file
at that URL. The browser parses the HTML returned by the server, like

    <html><body>
    <img src="http://www.foo.org/image.png";>
    </body></html>

When the browser sees this, it needs to make a request to also get the
"file" at http://www.foo.org/image.png. Then the browser "renders" the
webpage by putting the image in place in your browser window. So it's
just like a separate request for a "naked" image. The reason your
browser might cache the dynamically generated image is it doesn't
recognize it as a dynamic script, just another file that's sent (maybe
that's a tautology? :)

-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org