PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Fri Jul 20, 2018 11:01 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Oct 29, 2004 5:43 pm 
Offline
Forum Newbie

Joined: Wed Oct 29, 2003 10:53 am
Posts: 10
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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 29, 2004 6:54 pm 
Offline
DevNet Resident

Joined: Sun Jul 20, 2003 9:25 pm
Posts: 1150
Location: West Yorkshire, England
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?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 10, 2004 6:15 pm 
Offline
Forum Regular

Joined: Mon Oct 18, 2004 8:14 pm
Posts: 741
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

Syntax: [ Download ] [ Hide ]
ExpiresActive On
ExpiresDefault "access plus 2 months"


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group