alphagov/cdn-acceptance-tests — pull request #82 by dcarley (2014-08-07 09:57:27+00:00)
Title: Add TestNoCacheHeaderCacheControlMaxAge0

The response should not be cached.

It works as expected on Varnish and CloudFlare. It mostly fails on Fastly,
but I'm not sure that our tests match any of the criteria in this
explanation: http://docs.fastly.com/guides/22951283/26628787

> If you just set max-age=0 or an Expires in the past, there is still no
> guarantee that the content won't be used to satisfy multiple outstanding
> requests at the same time. Also, an expired (stale) object might be used in
> case of errors or while a request to your backend for the same object is
> already in progress.

If we merge this and decide that it's the correct behaviour then we should
create a bug in Pivotal to track any changes required for our Fastly
configs.