I'm wondering what additional info you feel you need to the answer provided by me and others here.
http://www.theanswerbank.co.uk/Law/Civil/Question1447547.html
There is a smallish period of time you can move out, then move back in, and the period out would be ignored for any CGT liability.
However, having moved back in after being away for the period you are talking about, there will always be a potential liability at the end, even if you live in it for 50 years more.
Note what was said before, the liability only exists on any increase in value between the times you weren't living there - not over the whole capital increase (if any). Plus, you can use your annual personal CGT allowance at the end when you finally sell, to offset any potential liability to lower net figure.