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

Bug 426625

Summary: File API should always send ETag also if response is compressed
Product: [ECD] Orion Reporter: Matthias Sohn <matthias.sohn>
Component: ServerAssignee: Project Inbox <orion.server-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: simon_kaegi
Version: 5.0   
Target Milestone: 5.0 RC1   
Hardware: All   
OS: All   
Whiteboard:

Description Matthias Sohn CLA 2014-01-24 16:07:57 EST
In order to allow efficient caching the server's file API should always send ETags so that clients can use If-Match and If-None-Match header to avoid unnecessary transfer of response bodies. Currently the file API only sets ETag for small non-compressed responses. So effectively this renders the file API no-cache even with https://git.eclipse.org/r/#/c/20979/ introducing support for If-None-Match handling.

Any hints for implementing this are appreciated, looking forward to fix this.
Comment 1 Matthias Sohn CLA 2014-01-28 18:47:03 EST
pushed fix for review https://git.eclipse.org/r/#/c/21196/
Comment 2 Matthias Sohn CLA 2014-01-30 03:05:13 EST
merged as ddbea6f3027c75ef32fbef997a4537aba8ef9eea