Expiration of cached adaptive images
Posted on 2013-05-28
I'm trying out an adaptive image solution, wherein image requests are routed to a php file by htaccess. The php file serves the visitor with a downsized version of the image, if the native image's width exceeds the visitor's screen width. The downsized image is also cached. My question pertains to some code in the php file, which removes the cached image after a configurable length of time. So, is it desirable to keep cached images for a longer time, since other visitors with small screens might request the same image?