From 53747186cf6157b8f604345f241e9df9a893c768 Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Thu, 04 May 2017 11:33:28 +0000 Subject: [PATCH] Service worker draft --- version.php | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/version.php b/version.php index 569683e..a518c36 100644 --- a/version.php +++ b/version.php @@ -1,2 +1,9 @@ <?php -echo max(array_map('filemtime', glob('*.{html,js,css}', GLOB_NOSORT|GLOB_BRACE))); +$files = glob('*.{html,js,css}', GLOB_NOSORT|GLOB_BRACE); + +echo json_encode( + array_combine( + $files, + array_map('filemtime', $files) + ) +); -- Gitblit v1.9.1