After reading a featured article about the updated W3C validator I took the latest build of my site and got the score to 100% on the mobile checker though I wasn't happy with some of the warnings including one referencing Cache-Control being listed. Sure enough I realized that since I was pulling content from a database I'd have to go out of my way to set the last modified header. So I use MySQL's NOW() to store datetime stamps as the datetime type.
So I'm trying to determine the most efficient way to convert a Unix timestamp (e.g. 2010-04-04 04:04:04) to a HTTP Cache-Control accepted format (e.g. Sun, 04 Jul 2010 04:04:04 GMT) along with adjustment for varying time zones.
Right now I'm still working with chicken scratch as there doesn't seem to be much if anything about this topic specifically. I'd also like to avoid using the Unix Epoch if at all possible. My host is running PHP 5.2.x on my live though I'm running 5.3.x locally.
Thoughts please?
- John