Getting a static source URI for FileResource for the session

rigth now every time I do a

new FileResource("/somewhere/something"); I get a an object with a different URI. As a result I get images that cannot be cached and are downloaded evey time.

Is there a way to override the resource servlet logic so that within one session FileResources created from same file get the same URI?