Optimizes 304 caching.