MantisBT: master df983732

Author Committer Branch Timestamp Parent
vboctor vboctor master 2017-11-18 01:53:27 master 2fd81a3e
Affected Issues  0023648: Leverage `ETag` headers when getting issues

Use ETag and If-None-Match when getting issues

When getting an issue, return an ETag, even if the issue doesn’t exist.

When request contains If-None-Match and hash matches, then return 304 Not Modified.
The 304 response will be returned whether issue exists or not.

The hash depends on:

  • a hasing version
  • user id
  • issue id
  • issue last updated

Fixes 0023648

mod - api/rest/restcore/issues_rest.php Diff File
mod - core/bug_api.php Diff File
mod - core/constant_inc.php Diff File