Image Caching - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Image Caching (/showthread.php?tid=21057) |
Image Caching - El Forum - 07-29-2009 [eluser]Twisted1919[/eluser] Is there a way to cache all the images displayed in a web page using CodeIgniter ? If there is , please point me to right direction , a library , anything ... Image Caching - El Forum - 07-29-2009 [eluser]Eric Barnes[/eluser] No I am not aware of any framework that will cache images. That is more a server setting and can be done with .htaccess in some cases: http://www.webmasterworld.com/apache/3659750.htm Image Caching - El Forum - 07-30-2009 [eluser]devbro[/eluser] are the images created dynamically with CI? or do you have them stored in a folder? in first case you can add headers that tell the browser how long keep the files for. in second case there are .htaccess stuff that allow you to set these options. Image Caching - El Forum - 07-30-2009 [eluser]Twisted1919[/eluser] please tell me more , an example of how should i do my images are stored in folders , separate folder for each of my users and each folder has several photos. LE : This did the job : Code: <IfModule mod_expires.c> |