As far as I know, time information is retrieved by the webserver itself for static content only.
In case of dynamic content the webserver should not set the last modification time by itself and leave it to an application. Joomla!, as the application, sets the last modified time here: /libraries/joomla/application/web.php".
If I not mistaken, the last modification time in Joomla! always set to the current time. Most likely, lines that are responsible for this, are:
Code: Select all
// Always modified.
$this->setHeader('Last-Modified', gmdate('D, d M Y H:i:s') . ' GMT', true);
$this->setHeader('Cache-Control', 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0', false);
I need to change this. When the Last-Modified field is created and sent on each request (Google bot or browser) it should not be Always modified (shouldn't contain current date and time) but should contain the time and date when a webpage really was modified.
Can you please help me with this issue?