codeforamerica/ohana-web-search — pull request #555 by monfresh (2014-08-21 15:58:55+00:00)
Title: Add HTTP caching to locations_controller

The server now includes a `Last-Modified` header, which the browser uses to ask the server if things have changed (via the `If-Modified-Since` Request header).

If the `Last-Modified` date has not changed, when a browser requests the same search results or location details page, the server will respond with a `304 Not Modified` and will skip rendering the view, thereby improving performance.

The page will be served from Memcache via the Memcachier add-on on Heroku. This means that any request for a page that has already been cached will be served from the cache, even when it comes from a different browser.

Other changes:

- Organize and document Caching and Email delivery setups in production.rb

- Document password protection in staging.rb

- Remove logging from ohanapi.rb