Aea Posted May 2, 2007 Share Posted May 2, 2007 Hey guys, found this forum via google, so decided to join up I currently have a script which uses imageJPEG (GD) to generate an image, I'm using the destination feature, which makes the function save the results to a regular .jpg image. The data form which the files are generated changes every two minutes, so there's a cron job to run the PHP script, and to save on CPU, I simply opted to save the output to an image. The only problem is that the browser caches the images, so solve this I need to add a header which causes the browser to not cache it. Herein lies the problem, I couldn't find any instructions on how to write headers to the outputed file. Any ideas? (P.S. There are some work arounds (php adding headers and calling the image), however I'd prefer to keep the bloat to the most minimal level). Link to comment https://forums.phpfreaks.com/topic/49580-questions-with-imagejpeg-sending-custom-headers/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.