General informations about JotCache extension

TOPIC: Last Modified Header.

Last Modified Header. 13 Dec 2015 19:42 #1546

Hello.
I use JotCache version 5.2.1
It give me in Header Last Modified Now so I commented in jotcache.php at line 209 (Dreamweaver) this:
//JResponse::setHeader('Last-Modified', gmdate('D, d M Y H:i:s') . ' GMT');

and I added in JotcacheFileCache.php after line 57 (Dreamweaver)
}private function _setExpire($path) {
this:
$LastModified = gmdate("D, d M Y H:i:s \G\M\T", filemtime($path));
JResponse::setHeader('Last-Modified', $LastModified);

Now Last Modified Time change with the Age of Cache's file.

Joomla version : 3.4
JotCache version : 5.2.1
site template: Shape5 Vertex
system plugins :
The administrator has disabled public write access.

Last Modified Header. [UPDATE] 27 Dec 2015 07:24 #1572

I added in JotcacheFileCache.php after line 57 (Dreamweaver)
}private function _setExpire($path) {
this:
$app = JFactory::getApplication();
$app->setHeader('Last-Modified', gmdate('D, d M Y H:i:s', filemtime($path)) . ' GMT', true);

and in jotcache.php after line 135 (Dreamweaver)
}case 'jch':
this:
header_remove('Last-Modified');

cause JCH Optimize already sends a Last-Modified for CSS and JS and return an Error 500.
The administrator has disabled public write access.
Time to create page: 0.260 seconds
We have 28 guests and no members online
Copyright © 2015 JotComponents
We have 28 guests and no members online
Copyright © 2017 JotComponents