Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted March 31, 200619 yr 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?
April 4, 200619 yr ... 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; } }
Archived
This topic is now archived and is closed to further replies.