Page 1 of 1

Script parameters

Posted: Mon Oct 20, 2025 4:24 pm
by Stefan
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>

Re: Script parameters

Posted: Tue Oct 21, 2025 7:28 am
by Dirk Geppert
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.