I'm wondering if it would make sense to move the max-age and stale-if-error to class level constants, since they might be used elsewhere. Same with the valid status codes to cache from line 56.