Cache images

B

Bokkie

Hi

I am new to html coding but have learnt quite a bit. Somewhere I read how to
cache an image on the users PC (when using the same image more than once on
the same page) to save on having to download the image for each instance it
has to be displayed. Problem is I can't remember where I read it and I would
love to, no, I really need to use this feature.

Can someone please help me here?

Thanks
 
W

William Tasso

Bokkie said:
Hi

I am new to html coding but have learnt quite a bit. Somewhere I read
how to cache an image on the users PC (when using the same image more
than once on the same page) to save on having to download the image
for each instance it has to be displayed. Problem is I can't remember
where I read it and I would love to, no, I really need to use this
feature.

just use the same url to reference the image *every* time you use it and it
will only be downloaded once.

<img src="whatever.gif">
or
<img src="http://www.example.com/assets/whatever.gif">
for example
 
J

Jerry Muelver

Bokkie said:
Somewhere I read how to
cache an image on the users PC to save on having to download the image
for each instance it
has to be displayed. Problem is I can't remember where I read it ....

Can someone please help me here?

The browser handles the cache on its own. It used to be you could
assure caching by using a full pathname rather than a relative path
for the image, but a quick check of my cache here indicates that
everything gets saved these days. You should explore the cache
settings on your own browser, and poke around to find the cache
(Windows/Temporary Internet Files (for MSIE), or Program
Files/Netscape?Users/(your username)/Cache for Netscape) to see how
this works. The cache files are a treasure trove of images, CSS files,
and JavaScript routines. It's quite an education for you... or for
someone else poking through your computer, like you Significant
Other....

---- jerry (WikiWriter lives at http://hytext.com/ww )
 
V

viza

and then Bokkie said:
how
to cache an image on the users PC (when using the same image more than
once on the same page) to save on having to download the image for each
instance

This is done automatically without yuo even thinking about it in any browser
worth tuppence.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top