alphagov/govuk_content_api — pull request #113 by jamiecobbett (2013-07-05 15:07:18+00:00)
Title: Prevent unpublished editions from being cached

We currently have a bug where private-frontend, which supports the "preview" feature in Publisher, will sometimes show the wrong versions of content.

The primary cause was that we were issuing future Expires headers for this content, which was then cached by Rack::Cache. This is a problem because unpublished content changes all the time as it is being worked on, so can't be cached.