Magento: A module to force static files reloading

Have you ever had a client telling you he does not see the latest changes you have just deployed on his website? And you answer him to clear his browser cache? Well here is a Magento module that allows you to force static files reloading in the end-user’s browser, thanks to a variable that will be added to the HTTP request and that you can manage in admin panel.


Here is an overview of the Magento admin panel once the module is installed and enabled:

Magento Suffix Static Files


Module adds a query parameter to each call of static file (js and css) that have been merged or not.

URL will look like this:

UPDATE 2013-03-16: added auto generation feature based on last modification date (enabled by default).


Extension is available on GitHub:

You have 2 ways to install it:

  1. Manual installation: download package here, unzip in Magento root folder, then clean cache.
  2. Installation with modgit:

    modgit -e clone queryfier

    See a full example of how to use modgit here.


Whenever you change the variable value, the file will be downloaded to the user’s browser and will be updated.

19 Responses to “Magento: A module to force static files reloading”

  1. oliver montes says:

    simple and use full thx :)

  2. Awesome module! Here’s an idea, why not auto-generate the query parameter based on last modified date?

  3. Matheus says:

    YEESSS man! Perfect idea!
    Every time I do it manually and now it’s over.
    Thanks, don’t stop posting.

  4. Avinash says:

    Why dont you upload this in magento extension, let me know if you dont want to do that, i can put it magento extension, then it will be easy for people to install it.

  5. Tim says:

    hi, does it work in 1.5?

  6. Mathis says:

    If wrote also an Extension like these.
    so you can take a look at these:


  7. Mhystake says:

    Très bonne idée, je cherchais justement à palier le problème qui se posait à moi niveau cache suite à mes modifications incessantes !

    J’ai par contre une 404 quand je passe par l’admin / config / bubblecode suite à l’installation en manuel.

    Je n’ai jamais utilisé modgit, je vais donc m’y essayer voir si j’ai toujours le même problème ;)

  8. Mhystake says:

    C’était exactement ça !

    Merci beaucoup et bonne continuation ;)

  9. Aurelien says:

    Bonjour, j’ai testé l’extension en local et cela fonctionne par contre une fois sur le serveur cela ne fonctionne plus, avez vous eu déjà ce cas ?
    Merci par avance.

  10. David says:

    This extension does a rewrite on the html_head block so if you have another extension that does this (e.g. Fooman Speedster) then this extension won’t work if it “runs” after that other extension. Just something to be aware of.

    Great job!

  11. Another really simple, but really effective module! I found your customer login one this morning – great work.

  12. Oliver says:

    I tried installing this module manually, but after exiting the admin panel, I was getting “Fatal error: Class ‘Bubble_Queryfier_Helper_Data’ not found in /home/dev/public_html/app/Mage.php on line 546″
    I have my cache magement currently disabled, as well as compilation disabled, and merge css files disabled, but problem persists.


    This is after downloading the file from:

  13. Gaël says:


    Is this module also work the JS & CSS compilation ?

  14. Michael says:

    works great! thank you!

Leave a Reply

* Required fields