Add content length header for static resources (#11699)

Change-Id: Ie307198a05e5c4f1b8bd74ec17185b9086ff0577