Use bytes length instead of resource content length