fix: Bypass browser cache for script.js

This commit is contained in:
raditarahman5-cloud
2026-06-10 21:06:54 +07:00
parent ed894bfaf0
commit ea92b523b1
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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>