I solved Cryptographic Issues
This commit is contained in:
@@ -151,7 +151,7 @@ if (file_exists($requestFile)) {
|
||||
header ( 'Pragma: cache' );
|
||||
$mtime = filemtime ( $requestFile );
|
||||
$gmt_mtime = gmdate ( "D, d M Y H:i:s", $mtime ) . " GMT";
|
||||
header ( 'ETag: "' . md5 ( $mtime . $requestFile ) . '"' );
|
||||
header ( 'ETag: "' . G::encryptOld ( $mtime . $requestFile ) . '"' );
|
||||
header ( "Last-Modified: " . $gmt_mtime );
|
||||
header ( 'Cache-Control: public' );
|
||||
$userAgent = strtolower ( $_SERVER ['HTTP_USER_AGENT'] );
|
||||
@@ -165,7 +165,7 @@ if (file_exists($requestFile)) {
|
||||
}
|
||||
}
|
||||
if (isset ( $_SERVER ['HTTP_IF_NONE_MATCH'] )) {
|
||||
if (str_replace ( '"', '', stripslashes ( $_SERVER ['HTTP_IF_NONE_MATCH'] ) ) == md5 ( $mtime . $requestFile )) {
|
||||
if (str_replace ( '"', '', stripslashes ( $_SERVER ['HTTP_IF_NONE_MATCH'] ) ) == G::encryptOld ( $mtime . $requestFile )) {
|
||||
header ( "HTTP/1.1 304 Not Modified" );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user