Disable the "do no cache javascript" parameter ?v=173

  • Posts: 634
  • Thank you received: 16
5 years 6 months ago #298434

-- HikaShop version -- : 3.5.1
-- HikaMarket version -- : 2.1.1
-- Joomla version -- : 3.8.x

We are on the process to make my site fast and optimized. We managed to fix and improve a lot of things and now we are stalled on something GTMetrix is complaining about:

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:

/media/com_hikamarket/css/frontend_custom.css?v=173
/media/com_hikamarket/css/otree.css?v=173
/media/com_hikamarket/js/hikamarket.js?v=173
/media/com_hikamarket/js/otree.js?v=173
/media/com_hikashop/css/frontend_custom.css?t=1468838255
/media/com_hikashop/css/hikashop.css?v=301
/media/com_hikashop/js/hikashop.js?v=301


I don't know how to get rid of this ?v=173 and ?v=301 parameter that according to GTMetrix is not allowing to cache those files by the browser.

Of course there might be a powerful reason for those files to be non-cached, I guess is to ensure updates always work right.

But now we are in a stable release of our site and we need to speed it up, we understand that when updating HikaComponents we'll need to clean caches to ensure good working.

QUESTION 1:

How can we avoid this parametrization of the script call so the site runs on browser cached .js

QUESTION 2:

Is there some of this files that you would encourage to keep them uncacheable?



Thank you.

Please Log in or Create an account to join the conversation.

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
5 years 6 months ago #298440

Hello,

I'm afraid that your question is not related to HikaMarket since you also listed HikaShop media files (and HikaMarket follow the way than HikaShop does)

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 634
  • Thank you received: 16
5 years 6 months ago #298459

I'll move this to HikaShop then.

The following user(s) said Thank You: Jerome

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.060 seconds
Powered by Kunena Forum