The Secrets of HTTP 304, Part 1

I’m not sure if this is all new or if I’m slow and everyone else already knew this or if there’s a select niche of people who have realised what I’m about to talk about.  I always see a huge problem in PHP Web Apps, the total and utter eradication of local caching.  It’s the ‘bomb them all’ method of ensuring your site is always serving the most up to date copy and everyone uses it.  Frankly, it’s bad form, it’s not cool and it has to stop.  Unless you have a compelling reason for serving fresh pages EVERY single hit and you have the server to handle it, i suggest you learn from our mistakes.