pkSML -
Joined: 29 May 2006 Posts: 952 Location: Michigan, USA
|
Posted: Wed Dec 10, 2008 2:43 am Post subject: Dynamic Content Return HTTP 304 |
|
|
Hey guys. I thought I might share this with you.
Sometimes you have a script that generates dynamic content. For instance, you have your site's CSS code that's actually a php file. You don't want users to have to re-download the latest version of the file, but Abyss always serves up a 200 OK header rather than a 304 Not Modified.
Here's a little code snippet to go at the very beginning of your script that will check the last modified time of the file in question and return the appropriate header.
URL: http://code-bin.homedns.org/202
By the way, I updated the abyss-websites.com website. If there are any Abyss sites not in the database, feel free to add them! I also updated the layout of my own site - http://pksml.net (My sites's CSS code uses the code snippet.) _________________ Stephen
Need a LitlURL?
http://CodeBin.yi.org |
|