fix: Bypass browser cache for script.js
This commit is contained in:
+1
-1
@@ -128,7 +128,7 @@ require_once '../api/db.php';
|
|||||||
// Penanda untuk script.js agar tahu konteks dashboard
|
// Penanda untuk script.js agar tahu konteks dashboard
|
||||||
window.dashboardType = 'infra';
|
window.dashboardType = 'infra';
|
||||||
</script>
|
</script>
|
||||||
<script src="script.js"></script>
|
<script src="script.js?v=<?= time(); ?>"></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
+1
-1
@@ -133,7 +133,7 @@ require_once '../api/db.php';
|
|||||||
// Penanda untuk script.js agar tahu konteks dashboard
|
// Penanda untuk script.js agar tahu konteks dashboard
|
||||||
window.dashboardType = 'sosial';
|
window.dashboardType = 'sosial';
|
||||||
</script>
|
</script>
|
||||||
<script src="script.js"></script>
|
<script src="script.js?v=<?= time(); ?>"></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user