Prevent reloading on asset file changes.

An attempt to fix #2905. Not sure if this is really the right to do it.