Add a middleware that sets Date, which is needed for some caches.