2

Recently my CSS files not updating to media/css_secure folder. I'm tried to kill cache but still its showing old CSS data. How to overcome to update my CSS. I am using Magento 1.9.2.2 Modified File

Not Updating

  • Hi Rajiv, can you confirm whether the hash stamp on the file is changing when you clear your cache? – JoshCarter Mar 25 '17 at 11:26
  • No, It's not changing – Rajiv Mar 25 '17 at 18:33
2

Many times css is cached by server.

  1. Try renaming your css from layout xml and skin folder.

  2. Make sure you are not using any CDN.

  3. Try unmerging css.

1

Rajiv,

If when you clear your cache the stamp on the CSS file stays the same, try turning merge CSS off in Sysytem > Configuration > Advanced > Developer. Clear the cache, then turn it back on to force Magento to recompile your CSS into a new merged file.

Hope this helps.

Josh

  • Thanks, but your answer is not worked for me – Rajiv Mar 25 '17 at 18:26
  • Ok, so if you turn merge CSS off and then flush the cache and reload the page, do you see file paths in dev tools to the normal un-merged files, eg. styles.css ? – JoshCarter Mar 26 '17 at 20:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.