views:

628

answers:

2

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