From 2511d1c01e9312faee98df1797026f8ca2f03aad Mon Sep 17 00:00:00 2001 From: devjin Date: Wed, 8 Aug 2012 13:35:00 +0000 Subject: [PATCH] issue 2034 add a file modified date to a file path of css. git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.2@11005 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/frontendfile/FrontEndFileHandler.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/frontendfile/FrontEndFileHandler.class.php b/classes/frontendfile/FrontEndFileHandler.class.php index 35e722170..909d5304e 100644 --- a/classes/frontendfile/FrontEndFileHandler.class.php +++ b/classes/frontendfile/FrontEndFileHandler.class.php @@ -247,7 +247,8 @@ } else { - $fullFilePath = $file->filePath . '/' . $file->fileName; + $noneCache = (is_readable($file->cdnPath.'/'.$file->fileName))?'?'.date('YmdHis', filemtime($file->cdnPath.'/'.$file->fileName)):''; + $fullFilePath = $file->filePath . '/' . $file->fileName.$noneCache; } $result[] = array('file' => $fullFilePath, 'media' => $file->media, 'targetie' => $file->targetIe); }