You are currently browsing the pjdietz blog archives for January, 2011


Browser Cacheable PHP Scripts

Let’s say you have a script that outputs an image and you want the browser to cache it, just as it does static images. You can accomplish this by supplying some headers with the image, and then checking for certain headers when the server receives subsequent requests for the same image. You can do this [...]