fix some bug in cache control, and add a notification when a url is updated