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

-
Hi Rajiv, can you confirm whether the hash stamp on the file is changing when you clear your cache?JoshCarter– JoshCarter2017-03-25 11:26:47 +00:00Commented Mar 25, 2017 at 11:26
-
No, It's not changingRajiv– Rajiv2017-03-25 18:33:37 +00:00Commented Mar 25, 2017 at 18:33
Add a comment
|
2 Answers
Many times css is cached by server.
Try renaming your css from layout xml and skin folder.
Make sure you are not using any CDN.
Try unmerging css.
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 meRajiv– Rajiv2017-03-25 18:26:36 +00:00Commented Mar 25, 2017 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– JoshCarter2017-03-26 20:57:22 +00:00Commented Mar 26, 2017 at 20:57
