Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 513997

Summary: Gitapi handleGitCommitBody does not properly set cache control header
Product: [ECD] Orion Reporter: Carolyn MacLeod <Carolyn_MacLeod>
Component: ServerAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Silenio_Quarti
Version: unspecified   
Target Milestone: 15.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Carolyn MacLeod CLA 2017-03-21 10:55:02 EDT
Intermittent problem where changes made in an editor do not show up as changed on the git page.

Investigating, found out that Cache-Control:max-age=604534
for link:
https://console.ng.bluemix.net/devops/code/gitapi/commit/HEAD/file/carolyn_macleod@ca.ibm.com-OrionContent/simple-toolchain-1487785456652/app.js?parts=body

Need to set to no-cache or no-store
Comment 1 Silenio Quarti CLA 2017-03-21 11:06:00 EDT
Found another place in FileHandlerV1 that also did not set the cache-control header.

Fixed

http://git.eclipse.org/c/gerrit/orion/org.eclipse.orion.server.git/commit/?id=1e3cfb26bf9bccb932943034646d67eebeaf5681