Forum Moderators: coopster
I have two questions
1) How could i save the printed image in the cache so that it loads faster next time?
2) Does it get cached by the visitor's browser too?
This method won't save you any bandwidth, but it'll save a little bit of CPU time on the server.
Images generated by a php script aren't usually cached by the browser. But if you want it to, it might be possible [google.com].
How could i save the printed image in the cache so that it loads faster next time?
Write it to a file. Then check if the file exists and send the file when you get another request for the same image.
Does it get cached by the visitor's browser too?
With the query string in your URL it might not be cached.
[edited by: jatar_k at 8:38 am (utc) on June 21, 2006]
[edit reason] fixed post [/edit]