moved cache actions application to earlier so it can be applied to redirects / 304s etc