[advanced search]
Results from the most recent live auction are here.
22 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Programming
User Name
Password

Old 11-27-2003, 08:40 PM   · #1
TWM
Web Marketing Specialist
 
Name: Garrett
Location: Texas, USA
Trader Rating: (21)
Join Date: Oct 2003
Posts: 1,325
NP$: 406.00 (Donate)
TWM is a jewel in the roughTWM is a jewel in the roughTWM is a jewel in the rough
How to cookie images

I have a client that has alot of reocurring images on different pages. Right now, they have to load every time. I want to make them cookie or whatever, so it only has to actually load one time so that hen he visits other pages with the same images, its already loaded...c an you do that? and i dont think i am talking about preloading images.. i dont think


Please register or log-in into NamePros to hide ads
TWM is offline   Reply With Quote
Old 11-28-2003, 02:52 PM   · #2
Mp)Tarh
....what?
 
Mp)Tarh's Avatar
 
Location: Ontario, Canada
Trader Rating: (0)
Join Date: Aug 2003
Posts: 101
NP$: 171.00 (Donate)
Mp)Tarh is an unknown quantity at this point
Browsers automatically do that, it's called caching.

When a browser visits a page, they find the address of the image and download it into the temporary internet folder.

If you visit another page with the same image, the browser will realise this and get the image from the harddrive rather than from the web server.

If your images have to load every time, check your code. One of two things may be happening here.

1) Your website automatically generates a new image every time you visit a page (PHP or CGI .gif construction). If this is the case GET THAT OUT OF THERE!!! Not only does that take up MASSIVE amounts of memory on the server, it also makes what you want to do impossible.

2) You have a META header or something of the sort on your page telling the browser not to cache. Take these out, and your problems are solved.
__________________
Yeah... I knew that. What?
Mp)Tarh is offline   Reply With Quote
Old 11-28-2003, 08:14 PM   · #3
NetButch
NamePros Member
 
NetButch's Avatar
 
Trader Rating: (0)
Join Date: Nov 2003
Posts: 39
NP$: 64.00 (Donate)
NetButch is an unknown quantity at this point
IN addition to what MP) said.. if you are using a graphics program to make the pages, such as Dreamweaver, or Adobe, or Ulead they will make duplicates of the same image for each unique page name.. for example if you have a graphic on the home page, page 2, and page 3, and its the same exact graphic, the program will name the graphic a different name for each page.. like index_01, page2_01, page3_01.. etc.. so you have three of the same graphic..

you can go back through your code and rename all the IMG= stuff to the same index_01 or whatever so the browser only chaches the image once instead of loading it new for each page visited.

did that make any sense? sorry if it didnt.. I am no linguist.

have fun!
__________________
NetButch ... Catch Your Audience!
www.netbutch.com
NetButch is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Site Sponsors
RealTechNetwork Website Header Design EscrowDNS
Advertise your business at NamePros
All times are GMT -7. The time now is 11:41 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0