headers: test content length is set on resources served from cache

Test that #712 is fixed.