Add minimum cache headers to placement service

Registered by Chris Dent on 2017-08-23

RFC 7232[1] says that a web service should send a last-modified header for any representation for a last-modified time can reasonable be deduced. The placement service does not currently do this. Including it will make it a better HTTP citizen and also provide useful metadata in the response. If a last-modified header is added then it is also necessary to add a cache-control header with a value of "no-cache" to insure that clients and proxies are not inclined to cache representations provided by the placement service.

Since adding a new header requires a new microversion a full-blown spec will be created and linked here when ready.

[1] https://tools.ietf.org/html/rfc7232#section-2.2

Blueprint information

Status:
Complete
Approver:
Sylvain Bauza
Priority:
Low
Drafter:
Chris Dent
Direction:
Approved
Assignee:
Chris Dent
Definition:
Approved
Series goal:
Accepted for queens
Implementation:
Implemented
Milestone target:
milestone icon queens-3
Started by
Matt Riedemann on 2017-10-03
Completed by
Matt Riedemann on 2017-12-13

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/placement-cache-headers,n,z

Addressed by: https://review.openstack.org/496853
    Add a spec for minimal cache headers in placement

Gerrit topic: https://review.openstack.org/#q,topic:bug/1632852,n,z

Addressed by: https://review.openstack.org/495380
    WIP: [placement] manage cache headers

Addressed by: https://review.openstack.org/510954
    [placement] manage cache headers for inventories

Addressed by: https://review.openstack.org/513161
    [placement] manage cache headers for resource classes

Addressed by: https://review.openstack.org/513174
    [placement] manage cache headers for usages

Addressed by: https://review.openstack.org/515128
    [placement] manage cache headers for aggregates

Addressed by: https://review.openstack.org/515156
    [placement] manage cache headers for allocations

Addressed by: https://review.openstack.org/521639
    [placement] Object changes to support last-modified headers

Addressed by: https://review.openstack.org/521640
    [placement] Add cache headers to placement api requests

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.