When a file is modified, a copy of the older version is saved to a cache folder. To enable file versioning, go to folder options and click on "enable file history/versioning". You can choose how many versions to save up to. You may view a file's history by right clicking on it and clicking history.
Note: The web client also has this capability.