How do I always serve returning customers the newest html, css and js?

So you probably found this thread while you where searching - what I do is this (same thing for js):

<?= css('assets/dist/css/main.min.css' . (filemtime('assets/dist/css/main.min.css') ? '?' . filemtime('assets/dist/css/main.min.css') : '')) ?>

filemtime — Gets file modification time

1 Like