Middleware to disable caching