[update] correctly recognizes non http resources
[update] check script and link tags as well