There's a two year minimum that you must hold the home to qualify for the exclusion. So it's not "every time" it appreciates, but it is "once every two years".
https://www.irs.gov/publications/p523/ar02.html#en_US_2015_p...
https://www.irs.gov/publications/p523/ar02.html#en_US_2015_p...