How Can I appends a querystring parameter to each CSS and JavaScript include in the HTML to clear CSS and JavaScript cache. I have tried
<action method="addCss"><stylesheet>css/style.css?123</stylesheet></action>
and
<action method="addItem"><type>skin_css</type><name>css/styles.css?123</name><params/></action>
. But each time it returns a the base package like
http://www.example.com/skin/frontend/base/default/styles.css?123
not my custom theme directory .
How to solve this ?
This free extension should do what you want - works perfectly for me:
https://github.com/jreinke/magento-suffix-static-files
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With