News:

Support the VirtueMart project and become a member

Main Menu

removing vmver=xxxx

Started by prokops, June 20, 2016, 10:50:12 AM

Previous topic - Next topic

prokops

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

Studio 42

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.

prokops

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,

Studio 42

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.