#1439 Posted in ‘CommentBox’

Latest post by Lefteris Kavadas on Sunday, 02 November 2025 22:22 EET

shenkesh s
Hi
Sorry for the many questions!
How to extend cache Expiration for commentbox.min.js and counters.js in .htaccess 
"?" after is blocking execution.
also in PageSpeed get error for "missed alt(image of public user)"

Lefteris Kavadas

Hi,

No problem at all!

Joomla automatically adds the version hash (for example, ?7a8061) to asset URLs loaded through its Asset Manager. This is intentional and helps browsers detect when a file has changed — it doesn’t block caching.

If you want to extend the cache expiration for these files, you can safely do so in your site’s .htaccess by adding:


    ExpiresActive On
    ExpiresByType application/javascript "access plus 1 year"

Browsers will cache the file until Joomla changes the hash (which happens only when the file contents change).

So, even though you see the “?” in the URL, caching will still work correctly.

As for the PageSpeed warning about the missing alt attribute (public user avatar), this will be addressed in an upcoming update.

Best,
Lefteris

shenkesh s
thank Is there a way to make run jdoc:include type="scripts" with a 10 second delay by hacking the file template index code?

Lefteris Kavadas

Hi,

The tag runs server-side when the page is rendered by Joomla. It doesn’t execute in the browser — it simply outputs the HTML markup (the script tags) that tell the browser which scripts to load.

So, there’s no way to delay its execution from the template index.php, since by the time the page reaches the browser, it has already been processed and replaced with static markup.

If you want to delay the execution of a specific script, that should be done client-side, using JavaScript — for example, by dynamically loading the script with setTimeout() or by marking it as defer/async.

Out of curiosity, could you tell me what you’re trying to achieve by delaying the scripts? Maybe I can suggest a cleaner or more Joomla-friendly solution.

Best,
Lefteris

Note: An active subscription is required in order to get support for our paid extensions. For our free extensions, if you don't have an account, register and then submit your support request.  In case you just want to ask a question, you can also use the contact form .

Firecoders
Are you using our extensions? Please post a review at the Joomla extensions directory!
Post a review