fix issue spring resource cache content in inputstream