Cache images to speed up website
Moderator: General Moderators
-
scubadiveflorida
- Forum Newbie
- Posts: 10
- Joined: Wed Oct 29, 2003 9:53 am
Cache images to speed up website
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
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
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"