alphagov/spotlight — pull request #798 by alexmuller (2014-09-23 11:24:27+00:00)
Title: Set longer Cache-Control headers

This commit sets the following Cache-Control headers:

- 600 seconds (10 minutes) for things that look like dashboards. This means that realtime data may initially be out of date on page load, but will be updated immediately after. No other modules have a granualarity of less than 1 hour. Most are updated daily.
- 7200 seconds (2 hours) on information pages like the homepage, services page and about page. These pages are so infrequently updated. If we did need to update them urgently, we could flush the cache.

I'm not sure why the homepage ever had a cache time of 2 minutes, except that in June I thought it was a good idea (#555).