Fix bug where default caching strategy would neglect to cache etags.

The default caching strategy was neglecting to cache `Etags` headers for files. This led to CRC-32 hashes getting calculated on every template render, which slowed down load times for us considerably.

This also adds a more robust check for production environments, since some teams (like ours) may set `NODE_ENV` to `prod` instead of `production`.