Changeset 576525


Ignore:
Timestamp:
05/24/15 12:18:30 (2 years ago)
Author:
pierre-alain <pierre-alain@…>
Branches:
master
Children:
78d381
Parents:
cf97b7
git-author:
pierre-alain <pierre-alain@…> (05/24/15 12:18:30)
git-committer:
pierre-alain <pierre-alain@…> (05/24/15 12:18:30)
Message:

sending correct etag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • display.php

    r0598f4 r576525  
    9090header("Expires: ".@gmdate("D, d M Y H:i:s", time() + 60*60*24*365)." GMT"); 
    9191header("Last-Modified: ".@gmdate("D, d M Y H:i:s", filemtime($file))." GMT");  
    92 $etag = '"' . $ext . (isset($minify) ? '-minify' : '') . '-'.md5_file($file).'"'; 
     92$etag = '"' . $ext . (!empty($minify) ? '-minify' : '') . '-'.md5_file($file).'"'; 
    9393header('Etag: '.$etag); 
    9494if(isset($_SERVER['HTTP_IF_NONE_MATCH']) && $_SERVER['HTTP_IF_NONE_MATCH'] === $etag) 
Note: See TracChangeset for help on using the changeset viewer.