alphagov/content-store — pull request #90 by alext (2014-12-05 11:44:23+00:00)
Title: Initial support for publish intents.

In order to allow items published by scheduled publishing to be live in a timely manner, content-store needs to wind back its cache headers ahead of the publish time. To allow this, this PR adds a mechanism for a publishing app to register an "intent to publish" including a publish time. content-store will then wind back it's cache headers as the time approaches. The frontend apps respect content-store's headers when setting their own headers, so this will propagate all the way out.

There are some outstanding issues with publish intents for the initial version of an item that will need some routes created. This will be addressed in an upcoming PR.

See https://gov-uk.atlassian.net/wiki/display/WH/Proposal%3A+Scheduled+publishing+cache+headers for more details of this feature.