RSS Feed/News Template Syntax JS tag - How does versioning work?

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,717
Points
823

Reputation:

I tried adding a version number to the file location in the JS tag:

Code:

<xf:js prod="myscript/myscript_min.js?v=1.1" dev="myscript/myscript.js?v=1.1" />

However, this rendered as:

Code:

<script src="/js/myscript/myscript_min.js?v=1.1&amp;_v=04a5b62b"></script>

I noticed other scripts on the page seem to have this automatically applied version number 04a5b62b. I want to ensure that the user's browser downloads a new copy of the script when I update my addon, but I don't...

Read more

Continue reading...
 
Status
Not open for further replies.
Top