VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: prokops on June 20, 2016, 10:50:12 AM

Title: removing vmver=xxxx
Post by: prokops on June 20, 2016, 10:50:12 AM
Hi!

The added versioning parameters makes caching difficult.

example:
/components/com_virtuemart/assets/js/dynupdate.js?vmver=9204
/components/com_virtuemart/assets/js/vmprices.js?vmver=9204

How do I disable these added parameters ?

Cheers
Title: Re: removing vmver=xxxx
Post by: Studio 42 on June 20, 2016, 11:45:17 AM
You can remove the scripts and CSS using PHP+Joomla in your template and readd it in your compiled Javascripts/CSS.
I think, i have send you the info for some months by mail, what to do, to optimize a Joomla/Virtuemart shop.
Title: Re: removing vmver=xxxx
Post by: prokops on July 04, 2016, 11:37:39 AM
Hi Patrick

Thanks for the answer. I see that you already made a post about this topic last year: https://forum.virtuemart.net/index.php?topic=131077.0

I removed the vmver reference from administrator\components\com_virtuemart\helpers\vmjsapi.php to stop the versioning.

Cheers,
Title: Re: removing vmver=xxxx
Post by: Studio 42 on July 04, 2016, 12:52:40 PM
Quote from: prokops on July 04, 2016, 11:37:39 AM
I removed the vmver reference from administrator\components\com_virtuemart\helpers\vmjsapi.php to stop the versioning.
It's not the best way.
You should disable the VM script and add to your template. So you can full manage your versioning and include the scripts and CSS minified.
On doing this, you have only one or 2 javascript and CSS  and reduce loading times and get a better google pagespeed.
In some case, it's not possible to join all script, but in all case, you win.