Jump to content

Content Caching in forums.


Guest qweasdzxc

Recommended Posts

Posted

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?

Posted

... 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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...