[Implemented] Attach a timestamp to the generated JavaScript

Got an idea for enhancing SpiderBasic? New command(s) you'd like to see?
User avatar
Peter
Posts: 1086
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

[Implemented] Attach a timestamp to the generated JavaScript

Post by Peter »

Hello Fred,

currently the JavaScript file created by SpiderBasic is included in the index.html as follows:

Code: Select all

<script type="text/javascript" src="myApplication.js"></script>
it would be advantageous to attach a timestamp to the file name to avoid cache problems:

Code: Select all

<script type="text/javascript" src="myApplication.js?t=1508520020835"></script>
Thanks in advance & Greetings ... Peter
Fred
Site Admin
Posts: 1506
Joined: Mon Feb 24, 2014 10:51 am

Re: Attach a timestamp to the generated JavaScript-Filename

Post by Fred »

Only in debug or always ?
User avatar
Peter
Posts: 1086
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: Attach a timestamp to the generated JavaScript-Filename

Post by Peter »

Fred wrote:Only in debug or always ?
Please always.

Thanks in advance & Greetings ... Peter
User avatar
Peter
Posts: 1086
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: Attach a timestamp to the generated JavaScript-Filename

Post by Peter »

After three years, I stumbled upon this problem again.
Fred
Site Admin
Posts: 1506
Joined: Mon Feb 24, 2014 10:51 am

Re: Attach a timestamp to the generated JavaScript

Post by Fred »

Added for next version
User avatar
Peter
Posts: 1086
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: Attach a timestamp to the generated JavaScript

Post by Peter »

Fred wrote: Fri Aug 26, 2022 9:33 am Added for next version
Image
Post Reply