Ensure cache settings are public.
Set Cache-Control max-age to an hour.
Do not HTTPS redirect for /api/
Make match not like hats.
Ensure we have a redirect on rules.
There is no need for this conditional block.
However, we need it for routing through for HTTP.
Additional changes to Cache-Control
Refactor how headers are set and set cache policy
Merge pull request #256 from unikent/refactor/correct-nginx-caching-problem

Correct Caching For Nginx