X
X
xuxubla2016-02-12 15:58:13
Joomla
xuxubla, 2016-02-12 15:58:13

Why is Last-Modified not installed in JOOMLA?

The title itself is not set. Tried to display before echo $app, at the very top of the template. Displayed with the header function, output like this:

jimport('joomla.environment.response');
JResponse::allowCache(true);
$dt = gmdate('D, d M Y H:i:s', time()).' GMT';
JResponse::setHeader('Date', $dt, true );
JResponse::setHeader('Last-Modified', $dt, true );
JResponse::setHeader('Cache-Control', 'max-age=300,must-revalidate', true );

Cache-Control is output, Last-Modified is not. Who will tell?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question