qweasdzxc Posted March 31, 2006 Posted March 31, 2006 I want IPB to post an ETag header and a corrent last-modified header in IPB. I guess the last-modified header should be the latest of the last post shown at the current page and the last edited posts edit time shown at the current page... Can this be implemented to the 2.x code tree?
qweasdzxc Posted April 4, 2006 Posted April 4, 2006 ... aaand If-Modified-Since header check must be implemented too... ETag is not that important.. :) people generally do:if ((isset($headers["If-None-Match"])) || (isset($headers["If-Modified-Since"]))) { if((ereg(md5($image), $headers["If-None-Match"])) || ($headers["If-Modified-Since"] == gmdate('D, d M Y H:i:s', filemtime($source) ).' GMT')) { header("HTTP/1.1 304 Not Modified"); ob_end_clean(); exit; } }
Recommended Posts
Archived
This topic is now archived and is closed to further replies.