![]() |
Safe to remove version numbers from .js?
Any ill effects from removing the version number from the javascripts?
Go to: Admin cp Styles & Templates > Open the box Search in templates Search for Text: .js?v={vb:raw vboptions.simpleversion} Replace with Text: .js Test Replacement Only (This will show you the results of doing this find/replace, without actually updating the templates) Tick NO Click find until it's done. I'd like others to test this out on a test skin/site and report any ill effects from it, thanks! It can help to prevent others from seeing version numbers to an extent and help with page loading. I've done this and this issue is resolved for pretty much all js that I've seen so far. Remove query strings from static resources |
Since it is used for browser cache busting, I would just alter the SIMPLE_VERSION constant in 'class_core.php' to something less revealing. If you run multiple sites with different versions, I would not change the CONSTANT to the same name for obvious reasons.
|
Yeah it's kinda too late for that with my skin, I told it to do it for only one but it did it for every skin :). Would it break any js from working though?
|
Quote:
It does not mean that some MOD out there is not using it for some odd reason, but I kind of doubt it. Most people are unaware what it is even for. --------------- Added 01 May 2014 at 15:45 --------------- Quote:
|
Resources with a "?" in the URL are not cached by some proxy caching servers. Remove the query string and encode the parameters into the URL for the following resources:
Does this impact your servers? If not, why do you care? |
Quote:
|
All times are GMT. The time now is 10:42 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|