It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index For Webmasters Webhosting Services Forum

Dynamic Image Header Optimization

Discuss everything about webhotels.

Dynamic Image Header Optimization

Postby Mvbshfala on Sat Jul 02, 2011 4:26 am

I have a PHP file that displays images that are stored in my database. I'm trying to optimize my website by sending certain

headers to the browser that say how long before expiration or when it expires.

I don't want to just use "Cache-Control: max-age" with some time that I estimated the images would expire, because they could

either change in 5 months or 1 second from now. But is that the only thing I can do? For each image, I can also get the

timestamp of when it was added if that helps at all. What headers would be best to send to the browser?
Mvbshfala
 
Posts: 33
Joined: Sat Jul 02, 2011 1:05 am

Who is online

Users browsing this forum: No registered users and 0 guests