Force a browser to download the latest version of a file

When you set expires headers to a long way into the future the browser will agressively cache the asset. With headers set in this way files need to have their filenames versioned to force the client to download the latest version of a file.

style.css?t=<?php echo filemtime('css/style.css'); ?>

Leave a Reply