Only update resources when the contents of a file change

* this should help performance a bit since we'll no longer update files
which have only had a marker added or removed