Cache images to speed up website

Need help with Photoshop, the GIMP, Illustrator, or others? Want to show off your work? Looking for advice on your newest Flash stuff?

Moderator: General Moderators

Post Reply
scubadiveflorida
Forum Newbie
Posts: 10
Joined: Wed Oct 29, 2003 9:53 am

Cache images to speed up website

Post by scubadiveflorida »

I have built a website and it has a bunch of little images on it. When it loads it has to load each image. I thought since it loaded it that the images should be cached when I go back to the page it loads them all again like they are not cached even if I am in the same browser session. Is there a way to make sure all of the images are cached so the next time it will load quick without haveing to download the images? Thanks
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post by kettle_drum »

The browser should cache the images under its own steam. Have you maybe restricted the amount of space the browser can use to cache files?
rehfeld
Forum Regular
Posts: 741
Joined: Mon Oct 18, 2004 8:14 pm

Post by rehfeld »

this might help

put this in a .htaccess file, in you images folder

be aware that this will have effect on everything in that folder, including the files in other folders inside of it. this will affect all files, not just images

Code: Select all

ExpiresActive On
ExpiresDefault "access plus 2 months"
Post Reply