Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Bug: Ionic serve showing old content #1432
Short description of the problem:
What I do to resolve this is restart ionic serve or run npm run build and refresh the page manually. Clearing browser cache and refreshing page solves this issue some times, but not all the time. So I don't think it's a browser cache issue.
What behavior are you expecting?
Steps to reproduce:
Create new project
Which version are you using?
This is really very annoying..the caching of pages. Is there an option to force not cache anything while in dev debug mode? I tried the dev tools in chrome but still shows cached page code. Any update to fix this ? A serious productivity killer as you are struggling to debug issues (which are complicated coz of caching pages views)
Same issue - sometimes i may not instantly notice that it server old, cached version and i end up tryign to debug the problem - wasting time.
So i have to shut down the serve and restart.
Just moments ago it server hours old version of the code - code i had changed and already commited to git.
Ionic 4 is not a solution indeed - it is in very early development and is not fit for commercial production.
I'm still having this issue, even tho I checked "Update on reload" and "Bypass for network" in the service workers tab in Chrome 69.0.3497.100
After the first
What happens is that the changes in the service/component get ignored while the template is updated. At this point, saving again the component/service again (even without changes) "updates" everything correctly.
Hope this helps a little.
I have to report that this issue is still happening... extremly annoying, happens at random times and really makes you waste a lot of time trying to figure out what is going on to then realize nothing happened, just a cache issue... constantly having to restart and run ionic serve again and again...