Reputation: 2378
I have an Angular application with CSS in it.I have recently changed the CSS and deployed it on server but it is not getting reflected in the client machines.
I have done the following things:
When I opened the web application in a new machine, the new changes are getting reflected.
When can be the possible reason for CSS not getting reflected even after checking all the above. Is there anything which I'm missing?
Upvotes: 2
Views: 3366
Reputation: 4690
I cleaned angular cache and it worked for me
ng cache clean
there're more if you do
ng cache --help
you'll get list of options like disable
, enable
cache
ng cache clean Deletes persistent disk cache from disk.
ng cache disable Disables persistent disk cache for all projects in the workspace. [aliases: off]
ng cache enable Enables disk cache for all projects in the workspace. [aliases: on]
ng cache info Prints persistent disk cache configuration and statistics in the console.
Upvotes: 0
Reputation: 1304
You can disable cache in development tool in chrome. Go to Developer tool in Chrome by pressing F12, Network-> click on Disable Cache
I faced similar issue. This helped me. Hope it might help some one
Upvotes: 0
Reputation: 15031
is it a PWA (progressive web app)... ? in which case the data is served by service worker and not freshly fetched.
Go to
if you're using a CDN, you may have to purge the cache for this particular CSS file from there as well.
Upvotes: 1
Reputation: 200
Please clear the browser history of the application complete from begin and perform hard refresh and then try to login to your application
Upvotes: 0
Reputation: 318
Make hard refresh (Ctrl+Shift+R) or go to view page source and the open css file from it and make it refresh and then again make hard refresh...Your problem will be solved
Upvotes: 0