I am here to discus my problem with my angularjs project. currently everything is working. Getting respose from APIs and setting data from API. but sometimes it get 400 error due to cache. after removing cache again works fine. so i want to build a code for when i refresh page caceh should be removed. I tried $templateCache but not working anymore.
Join the Stack Overflow Community
Stack Overflow is a community of 6.4 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up
Join them; it only takes a minute:
|
try this
|
|||||
|
If you are talking about development environment, you can disable browser cache when console is open. I'm pretty sure Firefox and IE have that option too. If you are talking about production environment, you'll need to look into javascript cache breaker. |
|||
|