Just starting out? Need help? Post your questions and find answers here.
Stefan
Posts: 251 Joined: Mon Feb 05, 2018 9:44 pm
Post
by Stefan » Mon Oct 20, 2025 4:24 pm
In my HTML file is the following line:
Code: Select all
<script type="text/javascript" src="index.js?t=1760939924"></script>
What does t=1760939924 mean?
I read that to disable the browser cache I can insert a "v=1"
Code: Select all
<script type="text/javascript" src="index.js?v=1></script>
Can I also write v=1 after t=1760939924?
Code: Select all
<script type="text/javascript" src="index.js?t=1760939924"v=1></script>
Dirk Geppert
Posts: 337 Joined: Fri Sep 22, 2017 7:02 am
Post
by Dirk Geppert » Tue Oct 21, 2025 7:28 am
t=1760939924 : This is a timestamp that causes the browser to reload this file.
However, this timestamp must change after every change to the source code. This means that appending a parameter like v=1 only works once.