Quantcast
Channel: WordPress.org Forums » [Autoptimize] Support
Viewing all articles
Browse latest Browse all 14094

futtta on "[Plugin: Autoptimize] Headers"

$
0
0

the versions pre-1.6.0 had an max-age that was too long. the current code does this (cfr. http://plugins.svn.wordpress.org/autoptimize/trunk/config/delayed.php);

$expireTime=60*60*24*355; // 1y max according to RFC
header('Cache-Control: max-age='.$expireTime.', public, must-revalidate');
header('Expires: '.gmdate('D, d M Y H:i:s', time() + $expireTime).' GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s', $modTime).' GMT');

hope this helps,
frank


Viewing all articles
Browse latest Browse all 14094

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>