Resources empty with live reload

This is a copy of LiveReload not rebuilding page resources, which lead to the issue at https://github.com/gohugoio/hugo/issues/4768.