Author Topic: Removing Query Strings from Static Resources  (Read 248 times)

ahmedfouad

  • Beginner
  • *
  • Posts: 13
  • A beginner
    • Tajr Shop
Removing Query Strings from Static Resources
« on: August 22, 2018, 22:45:47 pm »
How to remove Query Strings from Static Resources for example:
/components/com_virtuemart/assets/js/vmsite.js?vmver=23eebea0
/components/com_virtuemart/assets/js/fancybox/jquery.fancybox-1.3.4.pack.js?vmver=23eebea0
I'm using

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8183
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Removing Query Strings from Static Resources
« Reply #1 on: August 23, 2018, 00:02:51 am »
prob in admin vm helpers vmjsapi.php
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9667
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Removing Query Strings from Static Resources
« Reply #2 on: September 10, 2018, 07:16:52 am »
No, it is just wrong to remove it. It ensures that shoppers load the updated scripts and do not use the old ones from browser cache. Even the joomla guys adepted our technic to solve this problem.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

ahmedfouad

  • Beginner
  • *
  • Posts: 13
  • A beginner
    • Tajr Shop
Re: Removing Query Strings from Static Resources
« Reply #3 on: September 15, 2018, 15:55:35 pm »
OK Thank you.