Jump to the post that solved this thread.
Solved: 3 Years, 2 Months ago Whats the purpose of query strings on javascript?
#1
Solved: 3 Years, 2 Months ago
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1817"></script>

What's the purpose of having ?ver=1817 attached, other than indicating the version ? Does the codebase call this anywhere ?

And as a suggestion, why not indicate version included in the URL?

<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general-1817.js"></script>

What's the effect of dropping the query string ?

<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js"></script>

or

<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.min.js"></script>
What goes around comes around
Reply
Jump to the post that solved this thread.


Messages In This Thread
Whats the purpose of query strings on javascript? - by Ashley1 - 2018-08-21, 09:03 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)