jenkinsci/jenkins — pull request #660 by larshvile (2012-12-28 13:52:30+00:00)
Title:  [JENKINS-16215] Avoiding unnecessary downloads in FilePath.installIfNecessaryFrom

The updated version uses the locally cached timestamp, '.timestamp', to set the 'If-Modified-Since' header. 304 Not Modified responses are dealt with by aborting the installation.

The commit also contains two unit tests.
- If-Modified-Since is set, and installation is aborted because of '304 Not Modified'
- Installation still works as expected for other responses