Even in the latest Joomla 1.5 Last-Modified Header is non-customizable and returns current date, which is imho against seo-basics. Does any one know how (or component) to make Joomla 1.5 return Last-Modified header based on last modified article?
A:
JResponse::setHeader( 'Last-Modified', $yourDateHere );
should work. However, if you want to add this without hacking com_content
, you'll need to build a plugin that will detect when com_content
is being called, then retrieve the article from the database to get the modified date on the article.
jlleblanc
2009-04-22 17:11:21
A:
I put this quick and dirty hack in which serves my purposes:
http://www.senyahnoj.org.uk/2010/08/05/joomla-last-modified-header/
senyahnoj
2010-08-05 13:06:31