Add version to JS files to flush cache #659

This commit is contained in:
jokob-sk
2024-05-01 18:25:48 +10:00
parent 525b05db5a
commit 584fdb7734
13 changed files with 50 additions and 45 deletions

View File

@@ -30,8 +30,8 @@ require dirname(__FILE__).'/security.php';
<!-- jQuery 3 -->
<script src="lib/AdminLTE/bower_components/jquery/dist/jquery.min.js"></script>
<script src="js/common.js"></script>
<script src="js/modal.js"></script>
<script src="js/common.js?v=<?php include 'php/templates/version.php'; ?>"></script>
<script src="js/modal.js?v=<?php include 'php/templates/version.php'; ?>"></script>
<!-- Bootstrap 3.3.7 -->
<link rel="stylesheet" href="lib/AdminLTE/bower_components/bootstrap/dist/css/bootstrap.min.css">

0
front/php/templates/language/pl_pl.json Normal file → Executable file
View File

View File

@@ -16,6 +16,6 @@
echo file_get_contents($filename);
}
else{
echo "File not found";
echo date('Y-m-d H:i:s') . " - N/A";
}
?>