Remove query strings from static resources

General questions relating to Joomla! 3.x. Please consider the availability of third-party templates and extensions when deciding which Joomla version to use.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Post Reply
User avatar
LukeDouglas
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 175
Joined: Sat Dec 08, 2007 8:23 pm

Remove query strings from static resources

Post by LukeDouglas » Fri Feb 09, 2018 3:46 pm

In analyzing the performance of a website, I get this warning "Remove query strings from static resources".

There are 21 files in all with the "?"+code including commonly used files. In all there were 49 requests

Here are 3 exampleS:

Code: Select all

https://XXXXXXXXX.com/images/modules/showcase/home/slide-metal-roof.jpg?5a7a285d

https://XXXXXXXXX.com/media/jui/css/icomoon.css?5a79a330

https://XXXXXXXXX.com/templates/g5_helium/custom/css-compiled/custom_15.css?5a7a25b5
In checking just the "/g5_helium/" files being called on the home page, in the BODY there were some that did not have the extra parameters and some did have the extra parameters added but all references in the HEAD did have the extra parameter added.

Code: Select all

<link href="/templates/g5_helium/custom/css-compiled/helium_15.css?5a7a25b1" rel="stylesheet" />
<link href="/templates/g5_helium/custom/css-compiled/helium-joomla_15.css?5a7a25b1" rel="stylesheet" />
<link href="/templates/g5_helium/custom/css-compiled/custom_15.css?5a7a25b5" rel="stylesheet" />
<script src="/templates/g5_helium/js/juitabs.js"></script>
I'm wondering why these parameters are being added to these files and is there a way to remove them without impacting the performance or functionality of the website?

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 24627
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: Remove query strings from static resources

Post by Per Yngve Berg » Sat Feb 10, 2018 9:26 am

As these files belong to your template, ask your template developer.

I guess they are serial numbers added to inform the cache system that the file is changed in order to drop the old cached version and show the new version.


Post Reply

Return to “General Questions/New to Joomla! 3.x”